it.unimi.dsi.fastutil.longs
Class AbstractLongBigListIterator
java.lang.Object
it.unimi.dsi.fastutil.longs.AbstractLongIterator
it.unimi.dsi.fastutil.longs.AbstractLongBidirectionalIterator
it.unimi.dsi.fastutil.longs.AbstractLongBigListIterator
- All Implemented Interfaces:
- BidirectionalIterator<Long>, BigListIterator<Long>, LongBidirectionalIterator, LongBigListIterator, LongIterator, ObjectBidirectionalIterator<Long>, ObjectIterator<Long>, Iterator<Long>
- Direct Known Subclasses:
- LongBigListIterators.BigListIteratorListIterator, LongBigListIterators.EmptyBigListIterator, LongBigListIterators.UnmodifiableBigListIterator
public abstract class AbstractLongBigListIterator
- extends AbstractLongBidirectionalIterator
- implements LongBigListIterator
An abstract class facilitating the creation of type-specific big-list iterators.
This implementation provides (deprecated) implementations of ListIterator.previousIndex()
and ListIterator.nextIndex()
that
just invoke the corresponding BigListIterator
methods.
- See Also:
ListIterator
,
BigListIterator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLongBigListIterator
protected AbstractLongBigListIterator()
set
public void set(Long ok)
- Delegates to the corresponding type-specific method.
- Specified by:
set
in interface LongBigListIterator
add
public void add(Long ok)
- Delegates to the corresponding type-specific method.
- Specified by:
add
in interface LongBigListIterator
set
public void set(long k)
- This method just throws an
UnsupportedOperationException
.
- Specified by:
set
in interface LongBigListIterator
add
public void add(long k)
- This method just throws an
UnsupportedOperationException
.
- Specified by:
add
in interface LongBigListIterator
skip
public long skip(long n)
- 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>
- Parameters:
n
- the number of elements to skip.
- Returns:
- the number of elements actually skipped.
back
public long back(long n)
- This method just iterates the type-specific version of
AbstractLongBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.
Copyright © 2011. All Rights Reserved.