org.mongodb.morphia.geo.Geometry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of morphia Show documentation
Show all versions of morphia Show documentation
Java Object Document Mapper for MongoDB
The newest version!
package org.mongodb.morphia.geo;
import java.util.List;
/**
* Interface to denote which entities are classes that will serialise into a MongoDB GeoJson object.
*/
public interface Geometry {
/**
* Returns a list of coordinates for this Geometry type. For something like a Point, this will be a pair of lat/long coordinates, but
* for more complex types this will be a list of other Geometry objects. Used for serialisation to MongoDB.
*
* @return a List containing either Geometry objects, or a pair of coordinates as doubles
*/
List getCoordinates();
}