Class 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
    • Field Detail

      • lineStrings

        public final LineString[] lineStrings
        GeoJSON line string 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 GeoMultiLineString or if o is a non-null GeoMultiLineString instance whose line string array equals this GeoMultiLineString instance.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - comparison object.
        Returns:
        true if o is a non-null GeoMultiLineString instance whose line string array equals this GeoMultiLineString instance.
      • hashCode

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

        public java.lang.String toString()
        Returns human-readable text containing GeoJSON line strings.
        Overrides:
        toString in class GeoObject
        Returns:
        GeoJSON line strings as text.
      • builder

        public static GeoMultiLineString.Builder builder()
        Returns a new instance of an GeoMultiLineString builder.
        Returns:
        GeoJSON multi-string builder.