public interface PositionSequenceBuilder<P extends Position>
PositionSequence
s.
PositionSequences
are built by adding points in order.
Modifier and Type | Method and Description |
---|---|
PositionSequenceBuilder<P> |
add(double... coordinates)
Adds a
Position to the PositionSequence being built. |
PositionSequenceBuilder<P> |
add(P position)
Adds a Position to the
PositionSequence being built. |
int |
getNumAdded()
Returns the number of positions that have already been added.
|
PositionSequence<P> |
toPositionSequence()
Returns the result of this builder.
|
PositionSequenceBuilder<P> add(double... coordinates)
Position
to the PositionSequence
being built.coordinates
- the coordinates of the Position
that is addedPositionSequenceBuilder<P> add(P position)
PositionSequence
being built.position
- the position that is addedPositionSequence<P> toPositionSequence()
PositionSequence
that has been built by this builder instance.IllegalStateException
- when the construction of the PositionSequence
has not yet been completed.int getNumAdded()
Copyright © 2018 geolatte.org. All rights reserved.