Class GeometryCollection<G extends Geometry>

  • 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
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      G get​(int i)  
      int hashCode()  
      boolean hasZ()  
      boolean isEmpty()  
      java.util.Iterator<G> iterator()  
      int size()  
      java.lang.String toString()  
      ShapeType type()  
      <T,​E extends java.lang.Exception>
      T
      visit​(GeometryVisitor<T,​E> visitor)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.elasticsearch.geometry.Geometry

        hasAlt
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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
        Specified by:
        visit in interface Geometry
        Throws:
        E extends java.lang.Exception
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Geometry
      • size

        public int size()
      • get

        public G get​(int i)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • iterator

        public java.util.Iterator<G> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<G extends Geometry>
      • hasZ

        public boolean hasZ()
        Specified by:
        hasZ in interface Geometry
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object