public static class ObjectIterators.UnmodifiableListIterator<K> extends java.lang.Object implements ObjectListIterator<K>
| Constructor and Description |
|---|
UnmodifiableListIterator(ObjectListIterator<K> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
K |
next() |
int |
nextIndex() |
K |
previous()
Returns the previous element from the collection.
|
int |
previousIndex() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, remove, setback, skippublic UnmodifiableListIterator(ObjectListIterator<K> i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<K>hasPrevious in interface java.util.ListIterator<K>ListIterator.hasPrevious()public K next()
public K previous()
BidirectionalIteratorprevious in interface BidirectionalIterator<K>previous in interface java.util.ListIterator<K>ListIterator.previous()public int nextIndex()
nextIndex in interface java.util.ListIterator<K>public int previousIndex()
previousIndex in interface java.util.ListIterator<K>