it.unimi.dsi.fastutil.shorts
Class ShortIterators.UnmodifiableListIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.AbstractShortIterator
it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
it.unimi.dsi.fastutil.shorts.AbstractShortListIterator
it.unimi.dsi.fastutil.shorts.ShortIterators.UnmodifiableListIterator
- All Implemented Interfaces:
- BidirectionalIterator, Iterator, ListIterator, ShortBidirectionalIterator, ShortIterator, ShortListIterator
- Enclosing class:
- ShortIterators
- public static class ShortIterators.UnmodifiableListIterator
- extends AbstractShortListIterator
An unmodifiable wrapper class for list iterators.
ShortIterators.UnmodifiableListIterator
public ShortIterators.UnmodifiableListIterator(ShortListIterator i)
hasNext
public boolean hasNext()
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
nextShort
public short nextShort()
- Description copied from interface:
ShortIterator
- Returns the next element as a primitive type.
- Specified by:
nextShort
in interface ShortIterator
- Overrides:
nextShort
in class AbstractShortIterator
previousShort
public short previousShort()
- Description copied from interface:
ShortBidirectionalIterator
- Returns the previous element as a primitive type.
- Specified by:
previousShort
in interface ShortBidirectionalIterator
- Overrides:
previousShort
in class AbstractShortBidirectionalIterator
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()
next
public Object next()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface ListIterator
- Overrides:
next
in class AbstractShortIterator
previous
public Object previous()
- Description copied from interface:
BidirectionalIterator
- Returns the previous element from the collection.
- Specified by:
previous
in interface ListIterator
- Overrides:
previous
in class AbstractShortBidirectionalIterator