BidirectionalIterator<K>, ObjectBidirectionalIterator<K>, ObjectIterator<K>, ObjectListIterator<K>, java.util.Iterator<K>, java.util.ListIterator<K>public static class ObjectIterators.UnmodifiableListIterator<K> extends java.lang.Object implements ObjectListIterator<K>
| Constructor | Description |
|---|---|
UnmodifiableListIterator(ObjectListIterator<K> i) |
| Modifier and Type | Method | 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, waitback, skipadd, remove, setpublic 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>