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