Package net.sf.eBusx.geo
Class GeoPoint
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject
-
- net.sf.eBus.messages.EField
-
- net.sf.eBusx.geo.GeoObject
-
- net.sf.eBusx.geo.GeoPoint
-
- All Implemented Interfaces:
java.io.Serializable
public final class GeoPoint extends GeoObject
Contains a single GeoJSONposition
.- Author:
- Charles W. Rapp
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoPoint.Builder
Builder class used to createGeoPoint
instances.-
Nested classes/interfaces inherited from class net.sf.eBusx.geo.GeoObject
GeoObject.GeoBuilder<F extends GeoObject>, GeoObject.GeoType
-
-
Field Summary
Fields Modifier and Type Field Description Position
position
Single position containing the latitude, longitude, and (optionally) elevation.-
Fields inherited from class net.sf.eBusx.geo.GeoObject
boundingBox, MAX_LATITUDE, MAX_LONGITUDE, MIN_LATITUDE, MIN_LONGITUDE, type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GeoPoint.Builder
builder()
Returns a new instance of anGeoPoint
builder.boolean
equals(java.lang.Object o)
Returnstrue
ifo
is the same instance asthis GeoPoint
or ifo
is a non-null GeoPoint
instance whose position equalsthis GeoPoint
position.int
hashCode()
Returns position hash code.java.lang.String
toString()
Returns text containing the single position.-
Methods inherited from class net.sf.eBusx.geo.GeoObject
validateLatitude, validateLongitude
-
-
-
-
Field Detail
-
position
public final Position position
Single position containing the latitude, longitude, and (optionally) elevation.
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns text containing the single position.
-
equals
public boolean equals(java.lang.Object o)
Returnstrue
ifo
is the same instance asthis GeoPoint
or ifo
is a non-null GeoPoint
instance whose position equalsthis GeoPoint
position.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- comparison object.- Returns:
true
ifo
is a non-null GeoPoint
instance whose position equalsthis GeoPoint
position.
-
hashCode
public int hashCode()
Returns position hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- GeoJSOM position as a hash value.
-
builder
public static GeoPoint.Builder builder()
Returns a new instance of anGeoPoint
builder.- Returns:
- GeoJSON point builder.
-
-