Class Shape.Point

  • Enclosing class:
    Shape

    public static class Shape.Point
    extends java.lang.Object
    Defines a Point
    • Constructor Summary

      Constructors 
      Constructor Description
      Point​(double longitude, double latitude)
      Creates a point using longitude and latitude values
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.mongodb.DBObject toDBObject()
      Creates a DBObject from this Point
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Point

        public Point​(double longitude,
                     double latitude)
        Creates a point using longitude and latitude values
        Parameters:
        longitude - the longitude
        latitude - the latitude
    • Method Detail

      • toDBObject

        public com.mongodb.DBObject toDBObject()
        Creates a DBObject from this Point
        Returns:
        the DBObject