BidirectionalIterator<java.lang.Short>, ObjectBidirectionalIterator<java.lang.Short>, ObjectIterator<java.lang.Short>, ShortBidirectionalIterator, ShortIterator, java.util.Iterator<java.lang.Short>public static class ShortIterators.UnmodifiableBidirectionalIterator extends java.lang.Object implements ShortBidirectionalIterator
| Constructor | Description |
|---|---|
UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
boolean |
hasPrevious() |
Returns whether there is a previous element.
|
short |
nextShort() |
Returns the next element as a primitive type.
|
short |
previousShort() |
Returns the previous element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitback, previous, skipforEachRemaining, forEachRemaining, nextpublic UnmodifiableBidirectionalIterator(ShortBidirectionalIterator i)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Short>public boolean hasPrevious()
BidirectionalIteratorhasPrevious in interface BidirectionalIterator<java.lang.Short>ListIterator.hasPrevious()public short nextShort()
ShortIteratornextShort in interface ShortIteratorIterator.next()public short previousShort()
ShortBidirectionalIteratorpreviousShort in interface ShortBidirectionalIteratorListIterator.previous()