it.unimi.dsi.fastutil.longs
Class LongBigListIterators.EmptyBigListIterator
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.EmptyBigListIterator
- All Implemented Interfaces:
- BidirectionalIterator<Long>, BigListIterator<Long>, LongBidirectionalIterator, LongBigListIterator, LongIterator, ObjectBidirectionalIterator<Long>, ObjectIterator<Long>, Serializable, Cloneable, Iterator<Long>
- Enclosing class:
- LongBigListIterators
public static class LongBigListIterators.EmptyBigListIterator
- extends AbstractLongBigListIterator
- implements Serializable, Cloneable
A class returning no elements and a type-specific big list iterator interface.
This class may be useful to implement your own in case you subclass
a type-specific iterator.
- See Also:
- Serialized Form
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
LongBigListIterators.EmptyBigListIterator
protected LongBigListIterators.EmptyBigListIterator()
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<Long>
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Specified by:
hasPrevious in interface BidirectionalIterator<Long>
- 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.)
- Specified by:
nextIndex in interface BigListIterator<Long>
- 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.)
- Specified by:
previousIndex in interface BigListIterator<Long>
- 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()
skip
public long skip(long n)
- Description copied from class:
AbstractLongBigListIterator
- This method just iterates the type-specific version of
AbstractLongIterator.next() for at most
n times, stopping if Iterator.hasNext() becomes false.
- Specified by:
skip in interface BigListIterator<Long>- Overrides:
skip in class AbstractLongBigListIterator
- Parameters:
n - the number of elements to skip.
- Returns:
- the number of elements actually skipped.
back
public long back(long n)
- Description copied from class:
AbstractLongBigListIterator
- This method just iterates the type-specific version of
AbstractLongBidirectionalIterator.previous() for
at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
- Overrides:
back in class AbstractLongBigListIterator
clone
public Object clone()
- Overrides:
clone in class Object
Copyright © 2011. All Rights Reserved.