Class GeoMultiLineString.Builder

    • Method Detail

      • add

        public GeoMultiLineString.Builder add​(LineString ls)
        Appends line string to line strings list.
        Parameters:
        ls - append this line string.
        Returns:
        this Builder instance.
        Throws:
        java.lang.NullPointerException - if ls is null.
      • addAll

        public GeoMultiLineString.Builder addAll​(LineString[] ls)
        Appends line string array to line strings list. Line string array may be null or empty.
        Parameters:
        ls - append all line strings to list.
        Returns:
        this Builder instance.
      • addAll

        public GeoMultiLineString.Builder addAll​(java.util.Collection<LineString> ls)
        Appends line string collection to line strings list. Line string collection may be null or empty.
        Parameters:
        ls - append all line strings to list.
        Returns:
        this Builder instance.
      • lineStrings

        public GeoMultiLineString.Builder lineStrings​(LineString[] ls)
        Sets line strings list to the given array. Note that all previously added line strings are removed from the list prior to adding these line strings but after that the array is not null.
        Parameters:
        ls - line strings.
        Returns:
        this Builder instance.
        Throws:
        java.lang.NullPointerException - if ls is null. If this exception is thrown then line strings list is unchanged.