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<Short>, ObjectBidirectionalIterator<Short>, ObjectIterator<Short>, ShortBidirectionalIterator, ShortIterator, ShortListIterator, Iterator<Short>, ListIterator<Short>
- Enclosing class:
- ShortIterators
public static class ShortIterators.UnmodifiableListIterator
- extends AbstractShortListIterator
An unmodifiable wrapper class for list iterators.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final ShortListIterator i
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.
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
nextShort
public short nextShort()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding generic method.
- Specified by:
nextShort
in interface ShortIterator
- Overrides:
nextShort
in class AbstractShortIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousShort
public short previousShort()
- Description copied from class:
AbstractShortBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousShort
in interface ShortBidirectionalIterator
- Overrides:
previousShort
in class AbstractShortBidirectionalIterator
- Returns:
- the previous element in the iteration.
- See Also:
ListIterator.previous()
nextIndex
public int nextIndex()
previousIndex
public int previousIndex()
next
public Short next()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator<Short>
- Specified by:
next
in interface ListIterator<Short>
- Overrides:
next
in class AbstractShortIterator
previous
public Short previous()
- Description copied from class:
AbstractShortBidirectionalIterator
- Delegates to the corresponding type-specific method.
- Specified by:
previous
in interface BidirectionalIterator<Short>
- Specified by:
previous
in interface ListIterator<Short>
- Overrides:
previous
in class AbstractShortBidirectionalIterator
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
Copyright © 2011. All Rights Reserved.