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 classGeoPoint.BuilderBuilder class used to createGeoPointinstances.-
Nested classes/interfaces inherited from class net.sf.eBusx.geo.GeoObject
GeoObject.GeoBuilder<F extends GeoObject,B extends GeoObject.GeoBuilder<F,?>>, GeoObject.GeoType
-
-
Field Summary
Fields Modifier and Type Field Description PositionpositionSingle 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.Builderbuilder()Returns a new instance of anGeoPointbuilder.booleanequals(java.lang.Object o)Returnstrueifois the same instance asthis GeoPointor ifois a non-null GeoPointinstance whose position equalsthis GeoPointposition.inthashCode()Returns position hash code.java.lang.StringtoString()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)
Returnstrueifois the same instance asthis GeoPointor ifois a non-null GeoPointinstance whose position equalsthis GeoPointposition.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- comparison object.- Returns:
trueifois a non-null GeoPointinstance whose position equalsthis GeoPointposition.
-
hashCode
public int hashCode()
Returns position hash code.- Overrides:
hashCodein classjava.lang.Object- Returns:
- GeoJSOM position as a hash value.
-
builder
public static GeoPoint.Builder builder()
Returns a new instance of anGeoPointbuilder.- Returns:
- GeoJSON point builder.
-
-