Package dev.morphia.geo
Class PointBuilder
- java.lang.Object
-
- dev.morphia.geo.PointBuilder
-
@Deprecated(since="2.0", forRemoval=true) public class PointBuilder extends Object
Deprecated, for removal: This API element is subject to removal in a future version.use the driver-provided types insteadCreates Point instances representing a GeoJSON point type. The advantage of using the builder is to reduce confusion of the order of the latitude and longitude double values. Supported by server versions 2.4 and above.- See Also:
Point
-
-
Constructor Summary
Constructors Constructor Description PointBuilder()
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Point
build()
Deprecated, for removal: This API element is subject to removal in a future version.Creates an immutable pointPointBuilder
latitude(double latitude)
Deprecated, for removal: This API element is subject to removal in a future version.Add a latitude.PointBuilder
longitude(double longitude)
Deprecated, for removal: This API element is subject to removal in a future version.Add a longitude.static PointBuilder
pointBuilder()
Deprecated, for removal: This API element is subject to removal in a future version.Convenience method to return a new PointBuilder.
-
-
-
Method Detail
-
pointBuilder
public static PointBuilder pointBuilder()
Deprecated, for removal: This API element is subject to removal in a future version.Convenience method to return a new PointBuilder.- Returns:
- a new instance of PointBuilder.
-
build
public Point build()
Deprecated, for removal: This API element is subject to removal in a future version.Creates an immutable point- Returns:
- the Point with the specifications from this builder.
-
latitude
public PointBuilder latitude(double latitude)
Deprecated, for removal: This API element is subject to removal in a future version.Add a latitude.- Parameters:
latitude
- the latitude of the point- Returns:
- this PointBuilder
-
longitude
public PointBuilder longitude(double longitude)
Deprecated, for removal: This API element is subject to removal in a future version.Add a longitude.- Parameters:
longitude
- the longitude of the point- Returns:
- this PointBuilder
-
-