public abstract class AbstractLine extends AbstractList<SourceSegment> implements Line
Dataset
.
this IS a collection of SEGMENTS!Modifier and Type | Field and Description |
---|---|
protected HighwayRef |
highwayRef |
protected HighwayType |
highwayType |
protected AttributeProvider |
tags |
modCount
Constructor and Description |
---|
AbstractLine() |
AbstractLine(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
SourceSegment element) |
(package private) void |
addFirst(SourceNode node) |
void |
addLast(SourceNode node) |
Iterable<Node> |
coordinates()
Gives an ordered sequence of coordinates specifying this feature's geometry.
|
Dataset |
dataset() |
SourceNode |
end() |
SourceSegment |
get(int index) |
abstract long |
id() |
void |
mutable(boolean mutable) |
HighwayRef |
ref() |
SourceSegment |
remove(int index) |
void |
set(int index,
SourceNode node) |
SourceSegment |
set(int index,
SourceSegment element) |
int |
size() |
SourceNode |
start() |
AttributeProvider |
tags() |
HighwayType |
type() |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
protected AttributeProvider tags
protected HighwayType highwayType
protected HighwayRef highwayRef
public AbstractLine(int capacity)
public AbstractLine()
public void mutable(boolean mutable)
void addFirst(SourceNode node)
public void addLast(SourceNode node)
public SourceSegment get(int index)
get
in interface List<SourceSegment>
get
in class AbstractList<SourceSegment>
public int size()
size
in interface Line
size
in interface Collection<SourceSegment>
size
in interface List<SourceSegment>
size
in class AbstractCollection<SourceSegment>
public void set(int index, SourceNode node)
public SourceSegment set(int index, SourceSegment element)
set
in interface List<SourceSegment>
set
in class AbstractList<SourceSegment>
public void add(int index, SourceSegment element)
add
in interface List<SourceSegment>
add
in class AbstractList<SourceSegment>
public SourceSegment remove(int index)
remove
in interface List<SourceSegment>
remove
in class AbstractList<SourceSegment>
public SourceNode start()
public SourceNode end()
public Iterable<Node> coordinates()
SpatialFeature
coordinates
in interface Line
coordinates
in interface SpatialFeature
public AttributeProvider tags()
public HighwayType type()
public HighwayRef ref()