Package it.unimi.dsi.fastutil.floats
Class FloatIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.floats.FloatIterators.UnmodifiableIterator
- All Implemented Interfaces:
FloatIterator,Iterator<Float>
- Enclosing class:
- FloatIterators
public static class FloatIterators.UnmodifiableIterator extends Object implements FloatIterator
An unmodifiable wrapper class for iterators.
-
Constructor Summary
Constructors Constructor Description UnmodifiableIterator(FloatIterator i) -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.floats.FloatIterator
forEachRemaining, forEachRemaining, next, skip
-
Constructor Details
-
Method Details
-
hasNext
public boolean hasNext() -
nextFloat
public float nextFloat()Description copied from interface:FloatIteratorReturns the next element as a primitive type.- Specified by:
nextFloatin interfaceFloatIterator- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
-