Package net.sf.eBusx.geo
Class GeoMultiPolygon
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject
-
- net.sf.eBus.messages.EField
-
- net.sf.eBusx.geo.GeoObject
-
- net.sf.eBusx.geo.GeoMultiPolygon
-
- All Implemented Interfaces:
java.io.Serializable
public final class GeoMultiPolygon extends GeoObject
Contains zero or more GeoJSON polygons.- Author:
- Charles W. Rapp
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeoMultiPolygon.Builder
Builder class used to create GeoJSON multi-polygon instances.-
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 GeoPolygon[]
polygons
GeoJSON polygon 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 GeoMultiPolygon.Builder
builder()
Returns a new instance of anGeoMultiPolygon
builder.boolean
equals(java.lang.Object o)
Returnstrue
ifo
is the same instance asthis GeoMultiPolygon
or ifo
is a non-null GeoMultiPolygon
instance whose polygons array equalsthis GeoMultiPolygon
's array.int
hashCode()
Returns hash of polygons.boolean
isEmpty()
Returnstrue
if this multi-polygon elements has no line polygons;false
otherwise.java.lang.String
toString()
Returns text specifying GeoJSON type and attributes-
Methods inherited from class net.sf.eBusx.geo.GeoObject
validateLatitude, validateLongitude
-
-
-
-
Field Detail
-
polygons
public final GeoPolygon[] polygons
GeoJSON polygon array. May be empty but notnull
.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
Returnstrue
ifo
is the same instance asthis GeoMultiPolygon
or ifo
is a non-null GeoMultiPolygon
instance whose polygons array equalsthis GeoMultiPolygon
's array.- Overrides:
equals
in classjava.lang.Object
- Parameters:
o
- comparison object.- Returns:
true
ifo
equalsthis GeoMultiPolygon
instance.
-
hashCode
public int hashCode()
Returns hash of polygons.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- polygons hash.
-
toString
public java.lang.String toString()
Description copied from class:GeoObject
Returns text specifying GeoJSON type and attributes
-
isEmpty
public boolean isEmpty()
Returnstrue
if this multi-polygon elements has no line polygons;false
otherwise.- Returns:
true
if this element contains no polygons.
-
builder
public static GeoMultiPolygon.Builder builder()
Returns a new instance of anGeoMultiPolygon
builder.- Returns:
- GeoJSON multi-polygon builder.
- See Also:
GeoMultiPolygon.Builder
-
-