Package net.sf.eBusx.geo
Class GeoMultiLineString
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject
-
- net.sf.eBus.messages.EField
-
- net.sf.eBusx.geo.GeoObject
-
- net.sf.eBusx.geo.GeoMultiLineString
-
- All Implemented Interfaces:
java.io.Serializable
public final class GeoMultiLineString extends GeoObject
Contains zero or more GeoJSON line strings.- Author:
- Charles W. Rapp
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoMultiLineString.Builder
Builder class used to create GeoJSON multi-line string 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 LineString[]
lineStrings
GeoJSON line string array.-
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 GeoMultiLineString.Builder
builder()
Returns a new instance of anGeoMultiLineString
builder.boolean
equals(java.lang.Object o)
Returnstrue
ifo
is the same instance asthis GeoMultiLineString
or ifo
is a non-null GeoMultiLineString
instance whose line string array equalsthis GeoMultiLineString
instance.int
hashCode()
Returns hash of line strings.java.lang.String
toString()
Returns human-readable text containing GeoJSON line strings.-
Methods inherited from class net.sf.eBusx.geo.GeoObject
validateLatitude, validateLongitude
-
-
-
-
Field Detail
-
lineStrings
public final LineString[] lineStrings
GeoJSON line string array. May be empty but notnull
.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Returnstrue
ifo
is the same instance asthis GeoMultiLineString
or ifo
is a non-null GeoMultiLineString
instance whose line string array equalsthis GeoMultiLineString
instance.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- comparison object.- Returns:
true
ifo
is a non-null GeoMultiLineString
instance whose line string array equalsthis GeoMultiLineString
instance.
-
hashCode
public int hashCode()
Returns hash of line strings.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- line strings hash.
-
toString
public java.lang.String toString()
Returns human-readable text containing GeoJSON line strings.
-
builder
public static GeoMultiLineString.Builder builder()
Returns a new instance of anGeoMultiLineString
builder.- Returns:
- GeoJSON multi-string builder.
-
-