public static class LongIterators.UnmodifiableBidirectionalIterator extends AbstractLongBidirectionalIterator
| Constructor and Description |
|---|
UnmodifiableBidirectionalIterator(LongBidirectionalIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
Long |
next()
Delegates to the corresponding type-specific method.
|
long |
nextLong()
Delegates to the corresponding generic method.
|
Long |
previous()
Delegates to the corresponding type-specific method.
|
long |
previousLong()
Delegates to the corresponding generic method.
|
backremove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitskipskipforEachRemaining, removepublic UnmodifiableBidirectionalIterator(LongBidirectionalIterator i)
public boolean hasNext()
public boolean hasPrevious()
BidirectionalIteratorListIterator.hasPrevious()public long nextLong()
AbstractLongIteratornextLong in interface LongIteratornextLong in class AbstractLongIteratorIterator.next()public long previousLong()
AbstractLongBidirectionalIteratorpreviousLong in interface LongBidirectionalIteratorpreviousLong in class AbstractLongBidirectionalIteratorListIterator.previous()public Long next()
AbstractLongIteratornext in interface Iterator<Long>next in class AbstractLongIteratorpublic Long previous()
AbstractLongBidirectionalIteratorprevious in interface BidirectionalIterator<Long>previous in class AbstractLongBidirectionalIteratorListIterator.previous()