it.unimi.dsi.fastutil.shorts
Class ShortBigListIterators.UnmodifiableBigListIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.AbstractShortIterator
it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
it.unimi.dsi.fastutil.shorts.AbstractShortBigListIterator
it.unimi.dsi.fastutil.shorts.ShortBigListIterators.UnmodifiableBigListIterator
- All Implemented Interfaces:
- BidirectionalIterator<Short>, BigListIterator<Short>, ObjectBidirectionalIterator<Short>, ObjectIterator<Short>, ShortBidirectionalIterator, ShortBigListIterator, ShortIterator, Iterator<Short>
- Enclosing class:
- ShortBigListIterators
public static class ShortBigListIterators.UnmodifiableBigListIterator
- extends AbstractShortBigListIterator
An unmodifiable wrapper class for big list iterators.
Method Summary |
boolean |
hasNext()
|
boolean |
hasPrevious()
Returns whether there is a previous element. |
Short |
next()
Delegates to the corresponding type-specific method. |
long |
nextIndex()
Returns the index of the element that would be returned by a subsequent call to next. |
short |
nextShort()
Delegates to the corresponding generic method. |
Short |
previous()
Delegates to the corresponding type-specific method. |
long |
previousIndex()
Returns the index of the element that would be returned by a subsequent call to previous. |
short |
previousShort()
Delegates to the corresponding generic method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
i
protected final ShortBigListIterator i
ShortBigListIterators.UnmodifiableBigListIterator
public ShortBigListIterators.UnmodifiableBigListIterator(ShortBigListIterator 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 long nextIndex()
- Description copied from interface:
BigListIterator
- Returns the index of the element that would be returned by a subsequent call to next.
(Returns list size if the list iterator is at the end of the list.)
- Returns:
- the index of the element that would be returned by a subsequent call to next, or list
size if list iterator is at end of list.
- See Also:
ListIterator.nextIndex()
previousIndex
public long previousIndex()
- Description copied from interface:
BigListIterator
- Returns the index of the element that would be returned by a subsequent call to previous.
(Returns -1 if the list iterator is at the beginning of the list.)
- Returns:
- the index of the element that would be returned by a subsequent call to previous, or
-1 if list iterator is at beginning of list.
- See Also:
ListIterator.previousIndex()
next
public Short next()
- Description copied from class:
AbstractShortIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator<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>
- Overrides:
previous
in class AbstractShortBidirectionalIterator
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
Copyright © 2011. All Rights Reserved.