it.unimi.dsi.fastutil.longs
Class LongBigListIterators.UnmodifiableBigListIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLongIterator
it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
it.unimi.dsi.fastutil.longs.AbstractLongBigListIterator
it.unimi.dsi.fastutil.longs.LongBigListIterators.UnmodifiableBigListIterator
- All Implemented Interfaces:
- BidirectionalIterator<Long>, BigListIterator<Long>, LongBidirectionalIterator, LongBigListIterator, LongIterator, ObjectBidirectionalIterator<Long>, ObjectIterator<Long>, Iterator<Long>
- Enclosing class:
- LongBigListIterators
public static class LongBigListIterators.UnmodifiableBigListIterator
- extends AbstractLongBigListIterator
An unmodifiable wrapper class for big list iterators.
Method Summary |
boolean |
hasNext()
|
boolean |
hasPrevious()
Returns whether there is a previous element. |
Long |
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. |
long |
nextLong()
Delegates to the corresponding generic method. |
Long |
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. |
long |
previousLong()
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 LongBigListIterator i
LongBigListIterators.UnmodifiableBigListIterator
public LongBigListIterators.UnmodifiableBigListIterator(LongBigListIterator 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()
nextLong
public long nextLong()
- Description copied from class:
AbstractLongIterator
- Delegates to the corresponding generic method.
- Specified by:
nextLong
in interface LongIterator
- Overrides:
nextLong
in class AbstractLongIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousLong
public long previousLong()
- Description copied from class:
AbstractLongBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousLong
in interface LongBidirectionalIterator
- Overrides:
previousLong
in class AbstractLongBidirectionalIterator
- 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 Long next()
- Description copied from class:
AbstractLongIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator<Long>
- Overrides:
next
in class AbstractLongIterator
previous
public Long previous()
- Description copied from class:
AbstractLongBidirectionalIterator
- Delegates to the corresponding type-specific method.
- Specified by:
previous
in interface BidirectionalIterator<Long>
- Overrides:
previous
in class AbstractLongBidirectionalIterator
- Returns:
- the previous element from the collection.
- See Also:
ListIterator.previous()
Copyright © 2011. All Rights Reserved.