Package com.github.tommyettinger.ds
Class IntObjectMap.KeyIterator<V>
java.lang.Object
com.github.tommyettinger.ds.IntObjectMap.MapIterator<V>
com.github.tommyettinger.ds.IntObjectMap.KeyIterator<V>
- All Implemented Interfaces:
IntIterator,Iterator<Integer>
- Enclosing class:
- IntObjectMap<V>
public static class IntObjectMap.KeyIterator<V>
extends IntObjectMap.MapIterator<V>
implements IntIterator
-
Field Summary
Fields inherited from class com.github.tommyettinger.ds.IntObjectMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex, valid -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.tommyettinger.ds.IntObjectMap.MapIterator
findNextIndex, 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.IntIterator
forEachRemaining, nextMethods inherited from interface java.util.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:IntObjectMap.MapIteratorReturnstrueif the iteration has more elements. (In other words, returnstrueif next() would return an element rather than throwing an exception.)
-