it.unimi.dsi.fastutil.floats
Class AbstractFloatListIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.AbstractFloatIterator
      extended by it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
          extended by it.unimi.dsi.fastutil.floats.AbstractFloatListIterator
All Implemented Interfaces:
BidirectionalIterator<Float>, FloatBidirectionalIterator, FloatIterator, FloatListIterator, ObjectBidirectionalIterator<Float>, ObjectIterator<Float>, Iterator<Float>, ListIterator<Float>
Direct Known Subclasses:
FloatIterators.EmptyIterator, FloatIterators.UnmodifiableListIterator

public abstract class AbstractFloatListIterator
extends AbstractFloatBidirectionalIterator
implements FloatListIterator

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 AbstractFloatListIterator()
           
 
Method Summary
 void add(float k)
          This method just throws an UnsupportedOperationException.
 void add(Float ok)
          Delegates to the corresponding type-specific method.
 void set(float k)
          This method just throws an UnsupportedOperationException.
 void set(Float ok)
          Delegates to the corresponding type-specific method.
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatBidirectionalIterator
back, previous, previousFloat
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatIterator
next, nextFloat, 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.floats.FloatBidirectionalIterator
back, previousFloat
 
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterator
nextFloat, 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

AbstractFloatListIterator

protected AbstractFloatListIterator()
Method Detail

set

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

Specified by:
set in interface ListIterator<Float>

add

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

Specified by:
add in interface ListIterator<Float>

set

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

Specified by:
set in interface FloatListIterator

add

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

Specified by:
add in interface FloatListIterator


Copyright © 2011. All Rights Reserved.