Class LongFloatMap.KeyIterator
java.lang.Object
com.github.tommyettinger.ds.LongFloatMap.MapIterator
com.github.tommyettinger.ds.LongFloatMap.KeyIterator
- All Implemented Interfaces:
LongIterator, Iterator<Long>
- Enclosing class:
LongFloatMap
public static class LongFloatMap.KeyIterator
extends LongFloatMap.MapIterator
implements LongIterator
-
Field Summary
Fields inherited from class LongFloatMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LongFloatMap.MapIterator
remove, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, removeMethods inherited from interface 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: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<Long>- Overrides:
hasNextin classLongFloatMap.MapIterator- Returns:
trueif the iteration has more elements
-