Class AreaPositions
- java.lang.Object
-
- com.github.filosganga.geogson.model.positions.AbstractPositions<LinearPositions>
-
- com.github.filosganga.geogson.model.positions.AreaPositions
-
- All Implemented Interfaces:
Positions,Serializable
public class AreaPositions extends AbstractPositions<LinearPositions>
aPositionsinstance to represent an area Geometry.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAreaPositions.Builder-
Nested classes/interfaces inherited from class com.github.filosganga.geogson.model.positions.AbstractPositions
AbstractPositions.PositionsBuilder
-
-
Field Summary
-
Fields inherited from class com.github.filosganga.geogson.model.positions.AbstractPositions
children
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanareAllChildrenClosed()static AreaPositions.Builderbuilder()static AreaPositions.Builderbuilder(AreaPositions positions)Positionsmerge(Positions other)Merge this Positions with another one.
-
-
-
Method Detail
-
builder
public static AreaPositions.Builder builder()
-
builder
public static AreaPositions.Builder builder(AreaPositions positions)
-
areAllChildrenClosed
public Boolean areAllChildrenClosed()
-
merge
public Positions merge(Positions other)
Merge this Positions with another one. If the givenPositionsis: - SinglePosition, it will raise an IllegalArgumentException. - LinearPositions, it will return a new AreaPosition by appending the given LinearPositions to this. - AreaPositions, it will return a new MultiDimensionalPositions composed by this and the given AreaPositions, in order. - Any other, it delegates to the other the merge logic.- Parameters:
other- Positions instance to merge with.- Returns:
- Positions results of merging.
-
-