it.unimi.dsi.fastutil.floats
Class FloatIterators.UnmodifiableIterator

java.lang.Object
  extended by it.unimi.dsi.fastutil.floats.AbstractFloatIterator
      extended by it.unimi.dsi.fastutil.floats.FloatIterators.UnmodifiableIterator
All Implemented Interfaces:
FloatIterator, Iterator<Float>
Enclosing class:
FloatIterators

public static class FloatIterators.UnmodifiableIterator
extends AbstractFloatIterator

An unmodifiable wrapper class for iterators.


Field Summary
protected  FloatIterator i
           
 
Constructor Summary
FloatIterators.UnmodifiableIterator(FloatIterator i)
           
 
Method Summary
 boolean hasNext()
           
 Float next()
          Delegates to the corresponding type-specific method.
 float nextFloat()
          Delegates to the corresponding generic method.
 
Methods inherited from class it.unimi.dsi.fastutil.floats.AbstractFloatIterator
remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

protected final FloatIterator i
Constructor Detail

FloatIterators.UnmodifiableIterator

public FloatIterators.UnmodifiableIterator(FloatIterator i)
Method Detail

hasNext

public boolean hasNext()

nextFloat

public float nextFloat()
Description copied from class: AbstractFloatIterator
Delegates to the corresponding generic method.

Specified by:
nextFloat in interface FloatIterator
Overrides:
nextFloat in class AbstractFloatIterator
Returns:
the next element in the iteration.
See Also:
Iterator.next()

next

public Float next()
Description copied from class: AbstractFloatIterator
Delegates to the corresponding type-specific method.

Specified by:
next in interface Iterator<Float>
Overrides:
next in class AbstractFloatIterator


Copyright © 2011. All Rights Reserved.