public class LocationDataIterator extends Object implements ListIterator<Location>
OpenLR is a trade mark of TomTom International B.V.
email: software@openlr.org
| Modifier and Type | Method and Description |
|---|---|
void |
add(Location e)
Not supported by this iterator.
|
Location |
current()
This method delivers the location the iterator currently points to.
|
int |
currentIndex()
Gets the current location index.
|
boolean |
hasNext()
Checks if is next location available.
|
boolean |
hasPrevious()
Checks if is previous location available.
|
Location |
next()
Sets the pointer to the next location and delivers it back.
|
int |
nextIndex() |
Location |
previous()
Sets the pointer to the previous location and delivers it back.
|
int |
previousIndex() |
void |
remove()
Not supported by this iterator.
|
void |
reset()
Resets the iterator to the start position.
|
void |
set(Location e)
Not supported by this iterator.
|
Location |
setCurrent(int newIndex)
Sets the pointer to a specific location index.
|
int |
size()
Number of locations.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic final int size()
public final int currentIndex()
reset().public final Location current()
reset() before
this returns null.public final Location next()
NoSuchElementException if there is no next location available.
Please see hasNext().public final Location previous()
NoSuchElementException if there is no previous location available.
Please see hasPrevious().previous in interface ListIterator<Location>public final boolean hasPrevious()
hasPrevious in interface ListIterator<Location>public final boolean hasNext()
public final void reset()
public final Location setCurrent(int newIndex)
size() - 1.newIndex - the new indexcurrent()public final void remove()
UnsupportedOperationException.public final int nextIndex()
nextIndex in interface ListIterator<Location>public final int previousIndex()
previousIndex in interface ListIterator<Location>public final void set(Location e)
UnsupportedOperationException.set in interface ListIterator<Location>e - ignoredpublic final void add(Location e)
UnsupportedOperationException.add in interface ListIterator<Location>e - ignoredCopyright © 2019 TomTom International B.V.. All rights reserved.