it.unimi.dsi.fastutil.shorts
Class AbstractShortBigListIterator
java.lang.Object
it.unimi.dsi.fastutil.shorts.AbstractShortIterator
it.unimi.dsi.fastutil.shorts.AbstractShortBidirectionalIterator
it.unimi.dsi.fastutil.shorts.AbstractShortBigListIterator
- All Implemented Interfaces:
- BidirectionalIterator<Short>, BigListIterator<Short>, ObjectBidirectionalIterator<Short>, ObjectIterator<Short>, ShortBidirectionalIterator, ShortBigListIterator, ShortIterator, Iterator<Short>
- Direct Known Subclasses:
- ShortBigListIterators.BigListIteratorListIterator, ShortBigListIterators.EmptyBigListIterator, ShortBigListIterators.UnmodifiableBigListIterator
public abstract class AbstractShortBigListIterator
- extends AbstractShortBidirectionalIterator
- implements ShortBigListIterator
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 |
AbstractShortBigListIterator
protected AbstractShortBigListIterator()
set
public void set(Short ok)
- Delegates to the corresponding type-specific method.
- Specified by:
set
in interface ShortBigListIterator
add
public void add(Short ok)
- Delegates to the corresponding type-specific method.
- Specified by:
add
in interface ShortBigListIterator
set
public void set(short k)
- This method just throws an
UnsupportedOperationException
.
- Specified by:
set
in interface ShortBigListIterator
add
public void add(short k)
- This method just throws an
UnsupportedOperationException
.
- Specified by:
add
in interface ShortBigListIterator
skip
public long skip(long n)
- This method just iterates the type-specific version of
AbstractShortIterator.next()
for at most
n
times, stopping if Iterator.hasNext()
becomes false.
- Specified by:
skip
in interface BigListIterator<Short>
- 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
AbstractShortBidirectionalIterator.previous()
for
at most n
times, stopping if BidirectionalIterator.hasPrevious()
becomes false.
Copyright © 2011. All Rights Reserved.