public static class ObjectIterators.UnmodifiableListIterator<K> extends AbstractObjectListIterator<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() |
add, set
back
remove, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
remove
back
skip
forEachRemaining
protected final ObjectListIterator<K> i
public UnmodifiableListIterator(ObjectListIterator<K> i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIterator
ListIterator.hasPrevious()
public K next()
public K previous()
BidirectionalIterator
ListIterator.previous()
public int nextIndex()
public int previousIndex()
Copyright © 2011–2024. All rights reserved.