it.unimi.dsi.fastutil.booleans
Class AbstractBooleanBigListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
      extended by it.unimi.dsi.fastutil.booleans.AbstractBooleanBidirectionalIterator
          extended by it.unimi.dsi.fastutil.booleans.AbstractBooleanBigListIterator
All Implemented Interfaces:
BidirectionalIterator<Boolean>, BigListIterator<Boolean>, BooleanBidirectionalIterator, BooleanBigListIterator, BooleanIterator, ObjectBidirectionalIterator<Boolean>, ObjectIterator<Boolean>, Iterator<Boolean>
Direct Known Subclasses:
BooleanBigListIterators.BigListIteratorListIterator, BooleanBigListIterators.EmptyBigListIterator, BooleanBigListIterators.UnmodifiableBigListIterator

public abstract class AbstractBooleanBigListIterator
extends AbstractBooleanBidirectionalIterator
implements BooleanBigListIterator

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 AbstractBooleanBigListIterator()
           
 
Method Summary
 void add(boolean k)
          This method just throws an UnsupportedOperationException.
 void add(Boolean ok)
          Delegates to the corresponding type-specific method.
 long back(long n)
          This method just iterates the type-specific version of AbstractBooleanBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.
 void set(boolean k)
          This method just throws an UnsupportedOperationException.
 void set(Boolean ok)
          Delegates to the corresponding type-specific method.
 long skip(long n)
          This method just iterates the type-specific version of AbstractBooleanIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.
 
Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanBidirectionalIterator
back, previous, previousBoolean
 
Methods inherited from class it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
next, nextBoolean, 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.booleans.BooleanBidirectionalIterator
back, previousBoolean
 
Methods inherited from interface it.unimi.dsi.fastutil.booleans.BooleanIterator
nextBoolean, 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

AbstractBooleanBigListIterator

protected AbstractBooleanBigListIterator()
Method Detail

set

public void set(Boolean ok)
Delegates to the corresponding type-specific method.

Specified by:
set in interface BooleanBigListIterator

add

public void add(Boolean ok)
Delegates to the corresponding type-specific method.

Specified by:
add in interface BooleanBigListIterator

set

public void set(boolean k)
This method just throws an UnsupportedOperationException.

Specified by:
set in interface BooleanBigListIterator

add

public void add(boolean k)
This method just throws an UnsupportedOperationException.

Specified by:
add in interface BooleanBigListIterator

skip

public long skip(long n)
This method just iterates the type-specific version of AbstractBooleanIterator.next() for at most n times, stopping if Iterator.hasNext() becomes false.

Specified by:
skip in interface BigListIterator<Boolean>
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 AbstractBooleanBidirectionalIterator.previous() for at most n times, stopping if BidirectionalIterator.hasPrevious() becomes false.



Copyright © 2011. All Rights Reserved.