Class 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 instead
    Creates 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 Detail

      • PointBuilder

        public PointBuilder()
        Deprecated, for removal: This API element is subject to removal in a future version.
    • 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