public class GeoJSONPoint extends Object implements GeoJSONGeometryObject
| Constructor and Description |
|---|
GeoJSONPoint() |
| Modifier and Type | Method and Description |
|---|---|
static GeoJSONPoint |
create(GeoJSONCoordinate point) |
boolean |
equals(Object obj) |
Optional<GeoJSONCoordinate> |
getCoordinates() |
int |
hashCode() |
boolean |
isEmpty() |
GeoJSONPoint |
setCoordinates(GeoJSONCoordinate coordinates) |
String |
toString() |
String |
toWKT() |
void |
validate()
Checks if the instance is in a valid / useful state.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeNamepublic Optional<GeoJSONCoordinate> getCoordinates()
public GeoJSONPoint setCoordinates(GeoJSONCoordinate coordinates)
public static GeoJSONPoint create(GeoJSONCoordinate point)
public boolean isEmpty()
isEmpty in interface GeoJSONGeometryObjecttrue if the element does not contain any coordinatespublic void validate()
ValidatableIllegalArgumentException including a description of the
invalid state is thrown.validate in interface Validatablepublic String toWKT()
toWKT in interface GeoJSONGeometryObjectCopyright © 2018. All rights reserved.