Package org.elasticsearch.geo.geometry
Class GeometryCollection<G extends Geometry>
- java.lang.Object
-
- org.elasticsearch.geo.geometry.GeometryCollection<G>
-
- All Implemented Interfaces:
java.lang.Iterable<G>
,Geometry
- Direct Known Subclasses:
MultiLine
,MultiPoint
,MultiPolygon
public class GeometryCollection<G extends Geometry> extends java.lang.Object implements Geometry, java.lang.Iterable<G>
Collection of arbitrary geometry classes
-
-
Field Summary
Fields Modifier and Type Field Description static GeometryCollection<Geometry>
EMPTY
-
Constructor Summary
Constructors Constructor Description GeometryCollection()
GeometryCollection(java.util.List<G> shapes)
-
-
-
Field Detail
-
EMPTY
public static final GeometryCollection<Geometry> EMPTY
-
-
Constructor Detail
-
GeometryCollection
public GeometryCollection()
-
GeometryCollection
public GeometryCollection(java.util.List<G> shapes)
-
-
Method Detail
-
visit
public <T,E extends java.lang.Exception> T visit(GeometryVisitor<T,E> visitor) throws E extends java.lang.Exception
-
size
public int size()
-
get
public G get(int i)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
iterator
public java.util.Iterator<G> iterator()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-