it.unimi.dsi.fastutil.ints
Class IntBigListIterators.EmptyBigListIterator
java.lang.Object
it.unimi.dsi.fastutil.ints.AbstractIntIterator
it.unimi.dsi.fastutil.ints.AbstractIntBidirectionalIterator
it.unimi.dsi.fastutil.ints.AbstractIntBigListIterator
it.unimi.dsi.fastutil.ints.IntBigListIterators.EmptyBigListIterator
- All Implemented Interfaces:
- BidirectionalIterator<Integer>, BigListIterator<Integer>, IntBidirectionalIterator, IntBigListIterator, IntIterator, ObjectBidirectionalIterator<Integer>, ObjectIterator<Integer>, Serializable, Cloneable, Iterator<Integer>
- Enclosing class:
- IntBigListIterators
public static class IntBigListIterators.EmptyBigListIterator
- extends AbstractIntBigListIterator
- 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
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntIterator |
skip |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
IntBigListIterators.EmptyBigListIterator
protected IntBigListIterators.EmptyBigListIterator()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Integer>
hasPrevious
public boolean hasPrevious()
- Description copied from interface:
BidirectionalIterator
- Returns whether there is a previous element.
- Specified by:
hasPrevious
in interface BidirectionalIterator<Integer>
- Returns:
- whether there is a previous element.
- See Also:
ListIterator.hasPrevious()
nextInt
public int nextInt()
- Description copied from class:
AbstractIntIterator
- Delegates to the corresponding generic method.
- Specified by:
nextInt
in interface IntIterator
- Overrides:
nextInt
in class AbstractIntIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
previousInt
public int previousInt()
- Description copied from class:
AbstractIntBidirectionalIterator
- Delegates to the corresponding generic method.
- Specified by:
previousInt
in interface IntBidirectionalIterator
- Overrides:
previousInt
in class AbstractIntBidirectionalIterator
- 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<Integer>
- 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<Integer>
- 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:
AbstractIntBigListIterator
- This method just iterates the type-specific version of
AbstractIntIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.
- Specified by:
skip
in interface BigListIterator<Integer>
- Overrides:
skip
in class AbstractIntBigListIterator
- 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:
AbstractIntBigListIterator
- This method just iterates the type-specific version of
AbstractIntBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.
- Overrides:
back
in class AbstractIntBigListIterator
clone
public Object clone()
- Overrides:
clone
in class Object
Copyright © 2011. All Rights Reserved.