Class GeoMultiPolygon

    • Field Detail

      • polygons

        public final GeoPolygon[] polygons
        GeoJSON polygon array. May be empty but not null.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Returns true if o is the same instance as this GeoMultiPolygon or if o is a non-null GeoMultiPolygon instance whose polygons array equals this GeoMultiPolygon's array.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - comparison object.
        Returns:
        true if o equals this GeoMultiPolygon instance.
      • hashCode

        public int hashCode()
        Returns hash of polygons.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        polygons hash.
      • toString

        public java.lang.String toString()
        Description copied from class: GeoObject
        Returns text specifying GeoJSON type and attributes
        Overrides:
        toString in class GeoObject
        Returns:
        human-readable text containing GeoJSON type name and attributes.
      • isEmpty

        public boolean isEmpty()
        Returns true if this multi-polygon elements has no line polygons; false otherwise.
        Returns:
        true if this element contains no polygons.