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,GeoMultiLineString.Builder>
-
- net.sf.eBusx.geo.GeoMultiLineString.Builder
-
- Enclosing class:
- GeoMultiLineString
public static final class GeoMultiLineString.Builder extends GeoObject.GeoBuilder<GeoMultiLineString,GeoMultiLineString.Builder>
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 builder's settings.GeoMultiLineString.Builder
lineStrings(LineString[] ls)
Sets line strings list to the given array.protected GeoMultiLineString.Builder
self()
Returns subclass instance.-
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
-
self
protected GeoMultiLineString.Builder self()
Description copied from class:GeoObject.GeoBuilder
Returns subclass instance.- Specified by:
self
in classGeoObject.GeoBuilder<GeoMultiLineString,GeoMultiLineString.Builder>
- Returns:
- builder instance reference.
-
buildImpl
protected GeoMultiLineString buildImpl()
Returns a newGeoMultiLineString
instance created from this builder's 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(@Nullable LineString[] ls)
Appends line string array to line strings list. Line string array may benull
or empty. In this case nothing is done.- Parameters:
ls
- append all line strings to list.- Returns:
this Builder
instance.
-
addAll
public GeoMultiLineString.Builder addAll(@Nullable 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 determining 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.
-
-