Package com.github.tommyettinger.ds
Class LongFloatMap.ValueIterator
java.lang.Object
com.github.tommyettinger.ds.LongFloatMap.MapIterator
com.github.tommyettinger.ds.LongFloatMap.ValueIterator
- All Implemented Interfaces:
FloatIterator,Iterator<Float>
- Enclosing class:
- LongFloatMap
public static class LongFloatMap.ValueIterator
extends LongFloatMap.MapIterator
implements FloatIterator
-
Field Summary
Fields inherited from class com.github.tommyettinger.ds.LongFloatMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex, valid -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.tommyettinger.ds.LongFloatMap.MapIterator
remove, resetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.tommyettinger.ds.support.util.FloatIterator
forEachRemaining, nextMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ValueIterator
-
-
Method Details
-
nextFloat
public float nextFloat()Returns the nextfloatelement in the iteration.- Specified by:
nextFloatin interfaceFloatIterator- Returns:
- the next
floatelement in the iteration - Throws:
NoSuchElementException- if the iteration has no more elements
-
hasNext
public boolean hasNext()Description copied from class:LongFloatMap.MapIteratorReturnstrueif the iteration has more elements. (In other words, returnstrueif next() would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceIterator<Float>- Overrides:
hasNextin classLongFloatMap.MapIterator- Returns:
trueif the iteration has more elements
-