public static class IntIterators.UnmodifiableBidirectionalIterator extends java.lang.Object implements IntBidirectionalIterator
| Constructor and Description |
|---|
UnmodifiableBidirectionalIterator(IntBidirectionalIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
boolean |
hasPrevious()
Returns whether there is a previous element.
|
int |
nextInt()
Returns the next element as a primitive type.
|
int |
previousInt()
Returns the previous element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, skipforEachRemaining, nextpublic UnmodifiableBidirectionalIterator(IntBidirectionalIterator i)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Integer>public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<java.lang.Integer>ListIterator.hasPrevious()public int nextInt()
IntIteratornextInt in interface IntIteratornextInt in interface java.util.PrimitiveIterator.OfIntIterator.next()public int previousInt()
IntBidirectionalIteratorpreviousInt in interface IntBidirectionalIteratorListIterator.previous()