public class InstructionList extends AbstractList<Instruction>
modCount
Constructor and Description |
---|
InstructionList(int cap,
Translation tr) |
InstructionList(Translation tr) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Instruction element) |
Instruction |
find(double lat,
double lon,
double maxDistance)
This method is useful for navigation devices to find the next instruction for the specified
coordinate (e.g.
|
Instruction |
get(int index) |
Translation |
getTr() |
Instruction |
remove(int index) |
Instruction |
set(int index,
Instruction element) |
int |
size() |
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
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
public InstructionList(Translation tr)
public InstructionList(int cap, Translation tr)
public int size()
size
in interface Collection<Instruction>
size
in interface List<Instruction>
size
in class AbstractCollection<Instruction>
public Instruction get(int index)
get
in interface List<Instruction>
get
in class AbstractList<Instruction>
public Instruction set(int index, Instruction element)
set
in interface List<Instruction>
set
in class AbstractList<Instruction>
public void add(int index, Instruction element)
add
in interface List<Instruction>
add
in class AbstractList<Instruction>
public Instruction remove(int index)
remove
in interface List<Instruction>
remove
in class AbstractList<Instruction>
public Instruction find(double lat, double lon, double maxDistance)
maxDistance
- the maximum acceptable distance to the instruction (in meter)public Translation getTr()
Copyright © 2012–2020. All rights reserved.