it.unimi.dsi.fastutil.booleans
Class AbstractBooleanListIterator

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.AbstractBooleanListIterator
All Implemented Interfaces:
BidirectionalIterator<Boolean>, BooleanBidirectionalIterator, BooleanIterator, BooleanListIterator, ObjectBidirectionalIterator<Boolean>, ObjectIterator<Boolean>, Iterator<Boolean>, ListIterator<Boolean>
Direct Known Subclasses:
BooleanIterators.EmptyIterator, BooleanIterators.UnmodifiableListIterator

public abstract class AbstractBooleanListIterator
extends AbstractBooleanBidirectionalIterator
implements BooleanListIterator

An abstract class facilitating the creation of type-specific list iterators.

This class provides trivial type-specific implementations of set() and add() which throw an UnsupportedOperationException. For primitive types, it also provides a trivial implementation of set() and add() that just invokes the type-specific one.

See Also:
ListIterator

Constructor Summary
protected AbstractBooleanListIterator()
           
 
Method Summary
 void add(boolean k)
          This method just throws an UnsupportedOperationException.
 void add(Boolean ok)
          Delegates to the corresponding type-specific method.
 void set(boolean k)
          This method just throws an UnsupportedOperationException.
 void set(Boolean ok)
          Delegates to the corresponding type-specific method.
 
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 java.util.ListIterator
hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove
 
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
 

Constructor Detail

AbstractBooleanListIterator

protected AbstractBooleanListIterator()
Method Detail

set

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

Specified by:
set in interface ListIterator<Boolean>

add

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

Specified by:
add in interface ListIterator<Boolean>

set

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

Specified by:
set in interface BooleanListIterator

add

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

Specified by:
add in interface BooleanListIterator


Copyright © 2011. All Rights Reserved.