Package com.github.tommyettinger.ds
Class LongObjectMap.KeyIterator<V>
java.lang.Object
com.github.tommyettinger.ds.LongObjectMap.MapIterator<V>
com.github.tommyettinger.ds.LongObjectMap.KeyIterator<V>
- All Implemented Interfaces:
LongIterator,Iterator<Long>
- Enclosing class:
- LongObjectMap<V>
public static class LongObjectMap.KeyIterator<V>
extends LongObjectMap.MapIterator<V>
implements LongIterator
-
Field Summary
Fields inherited from class com.github.tommyettinger.ds.LongObjectMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex, valid -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.tommyettinger.ds.LongObjectMap.MapIterator
remove, resetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface com.github.tommyettinger.ds.support.util.LongIterator
forEachRemaining, next
-
Constructor Details
-
KeyIterator
-
-
Method Details
-
nextLong
public long nextLong()Description copied from interface:LongIteratorReturns the nextlongelement in the iteration.- Specified by:
nextLongin interfaceLongIterator- Returns:
- the next
longelement in the iteration
-
toList
Returns a new LongList containing the remaining keys. -
hasNext
public boolean hasNext()Description copied from class:LongObjectMap.MapIteratorReturnstrueif the iteration has more elements. (In other words, returnstrueif next() would return an element rather than throwing an exception.)
-