Package net.sf.eBusx.geo
Class GeoMultiPoint
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject
-
- net.sf.eBus.messages.EField
-
- net.sf.eBusx.geo.GeoObject
-
- net.sf.eBusx.geo.GeoMultiPoint
-
- All Implemented Interfaces:
java.io.Serializable
public final class GeoMultiPoint extends GeoObject
ContainsPosition
array which may be empty.- Author:
- Charles W. Rapp
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoMultiPoint.Builder
Builder class used to createGeoMultiPoint
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[]
positions
Positions contained in this multi-point GeoJSON object.-
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 GeoMultiPoint.Builder
builder()
Returns a new GeoJSON multi-point builder instance.boolean
equals(java.lang.Object o)
Returnstrue
ifo
is a non-null GeoMultiPoint
with a position array equalingthis GeoMultiPoint
position array.int
hashCode()
Returns hash code of contained positions.java.lang.String
toString()
Returns a single text line containing all the positions.-
Methods inherited from class net.sf.eBusx.geo.GeoObject
validateLatitude, validateLongitude
-
-
-
-
Field Detail
-
positions
public final Position[] positions
Positions contained in this multi-point GeoJSON object.
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a single text line containing all the positions.
-
equals
public boolean equals(java.lang.Object o)
Returnstrue
ifo
is a non-null GeoMultiPoint
with a position array equalingthis GeoMultiPoint
position array. Otherwise returnsfalse
.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- comparison object.- Returns:
true
ifo
is a non-null GeoMultiPoint
with a position array equalingthis GeoMultiPoint
position array.
-
hashCode
public int hashCode()
Returns hash code of contained positions.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- contained positions hash code.
-
builder
public static GeoMultiPoint.Builder builder()
Returns a new GeoJSON multi-point builder instance.- Returns:
GeoMultiPoint
builder instance.
-
-