public static class ObjectIterators.UnmodifiableListIterator<K> extends Object implements ObjectListIterator<K>
| Modifier and Type | Field and Description |
|---|---|
protected ObjectListIterator<K> |
i |
| 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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, remove, setback, skipforEachRemainingprotected final ObjectListIterator<K> i
public UnmodifiableListIterator(ObjectListIterator<K> i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<K>hasPrevious in interface ListIterator<K>ListIterator.hasPrevious()public K next()
public K previous()
BidirectionalIteratorprevious in interface BidirectionalIterator<K>previous in interface ListIterator<K>ListIterator.previous()public int nextIndex()
nextIndex in interface ListIterator<K>public int previousIndex()
previousIndex in interface ListIterator<K>Copyright © 2020. All rights reserved.