Class IntFloatMap.KeyIterator
java.lang.Object
com.github.tommyettinger.ds.IntFloatMap.MapIterator
com.github.tommyettinger.ds.IntFloatMap.KeyIterator
- All Implemented Interfaces:
IntIterator, Iterator<Integer>
- Enclosing class:
IntFloatMap
-
Field Summary
Fields inherited from class IntFloatMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class IntFloatMap.MapIterator
remove, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IntIterator
forEachRemaining, nextMethods inherited from interface Iterator
forEachRemaining, remove
-
Constructor Details
-
KeyIterator
-
-
Method Details
-
nextInt
public int nextInt()Description copied from interface:IntIteratorReturns the nextintelement in the iteration.- Specified by:
nextIntin interfaceIntIterator- Returns:
- the next
intelement in the iteration
-
toList
Returns a new IntList containing the remaining keys. -
hasNext
public boolean hasNext()Description copied from class:IntFloatMap.MapIteratorReturnstrueif the iteration has more elements. (In other words, returnstrueif next() would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceIterator<Integer>- Overrides:
hasNextin classIntFloatMap.MapIterator- Returns:
trueif the iteration has more elements
-