Package net.sf.eBusx.geo
Class GeoMultiLineString.Builder
- java.lang.Object
-
- net.sf.eBus.messages.EMessageObject.Builder<M>
-
- net.sf.eBus.messages.EField.Builder<F>
-
- net.sf.eBusx.geo.GeoObject.GeoBuilder<GeoMultiLineString>
-
- net.sf.eBusx.geo.GeoMultiLineString.Builder
-
- Enclosing class:
- GeoMultiLineString
public static final class GeoMultiLineString.Builder extends GeoObject.GeoBuilder<GeoMultiLineString>
Builder class used to create GeoJSON multi-line string instances. ABuilder
instance is obtained by callingGeoMultiLineString.builder()
method.
-
-
Field Summary
-
Fields inherited from class net.sf.eBus.messages.EMessageObject.Builder
mTargetClass
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeoMultiLineString.Builder
add(LineString ls)
Appends line string to line strings list.GeoMultiLineString.Builder
addAll(java.util.Collection<LineString> ls)
Appends line string collection to line strings list.GeoMultiLineString.Builder
addAll(LineString[] ls)
Appends line string array to line strings list.protected GeoMultiLineString
buildImpl()
Returns a newGeoMultiLineString
instance created from this builders settings.GeoMultiLineString.Builder
lineStrings(LineString[] ls)
Sets line strings list to the given array.-
Methods inherited from class net.sf.eBusx.geo.GeoObject.GeoBuilder
boundingBox, type
-
Methods inherited from class net.sf.eBus.messages.EField.Builder
validate
-
Methods inherited from class net.sf.eBus.messages.EMessageObject.Builder
build
-
-
-
-
Method Detail
-
buildImpl
protected GeoMultiLineString buildImpl()
Returns a newGeoMultiLineString
instance created from this builders settings.- Specified by:
buildImpl
in classEMessageObject.Builder<GeoMultiLineString>
- Returns:
GeoMultiLineString
instance.
-
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
- ifls
isnull
.
-
addAll
public GeoMultiLineString.Builder addAll(LineString[] ls)
Appends line string array to line strings list. Line string array may benull
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 benull
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 notnull
.- Parameters:
ls
- line strings.- Returns:
this Builder
instance.- Throws:
java.lang.NullPointerException
- ifls
isnull
. If this exception is thrown then line strings list is unchanged.
-
-