public static class ObjectBigListIterators.UnmodifiableBigListIterator<K> extends Object implements ObjectBigListIterator<K>
| Constructor and Description |
|---|
UnmodifiableBigListIterator(ObjectBigListIterator<K> i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
K |
next()
Returns the next element in the iteration.
|
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next.
|
K |
previous()
Returns the previous element from the collection.
|
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, back, set, skip, skipbackforEachRemaining, removepublic UnmodifiableBigListIterator(ObjectBigListIterator<K> i)
public boolean hasNext()
java.util.Iteratortrue if the iteration has more elements.
(In other words, returns true if Iterator.next() would
return an element rather than throwing an exception.)public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<K>ListIterator.hasPrevious()public K next()
java.util.Iteratorpublic K previous()
BidirectionalIteratorprevious in interface BidirectionalIterator<K>ListIterator.previous()public long nextIndex()
BigListIteratornextIndex in interface BigListIterator<K>ListIterator.nextIndex()public long previousIndex()
BigListIteratorpreviousIndex in interface BigListIterator<K>ListIterator.previousIndex()