it.unimi.dsi.fastutil.bytes
Class AbstractByteBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.bytes.AbstractByteIterator
      extended by it.unimi.dsi.fastutil.bytes.AbstractByteBidirectionalIterator
          extended by 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

Constructor Summary
protected AbstractByteBigListIterator()
           
 
Method Summary
 void add(byte k)
          This method just throws an UnsupportedOperationException.
 void add(Byte ok)
          Delegates to the corresponding type-specific method.
 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.
 void set(byte k)
          This method just throws an UnsupportedOperationException.
 void set(Byte ok)
          Delegates to the corresponding type-specific method.
 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.
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteBidirectionalIterator
back, previous, previousByte
 
Methods inherited from class it.unimi.dsi.fastutil.bytes.AbstractByteIterator
next, nextByte, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteBidirectionalIterator
back, previousByte
 
Methods inherited from interface it.unimi.dsi.fastutil.bytes.ByteIterator
nextByte, skip
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectIterator
skip
 
Methods inherited from interface it.unimi.dsi.fastutil.BidirectionalIterator
hasPrevious, previous
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 
Methods inherited from interface it.unimi.dsi.fastutil.BigListIterator
nextIndex, previousIndex
 

Constructor Detail

AbstractByteBigListIterator

protected AbstractByteBigListIterator()
Method Detail

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.