Class ObjectLongMap.ValueIterator<K>
java.lang.Object
com.github.tommyettinger.ds.ObjectLongMap.MapIterator<K>
com.github.tommyettinger.ds.ObjectLongMap.ValueIterator<K>
- All Implemented Interfaces:
LongIterator, Iterator<Long>
- Enclosing class:
ObjectLongMap<K>
public static class ObjectLongMap.ValueIterator<K>
extends ObjectLongMap.MapIterator<K>
implements LongIterator
-
Field Summary
Fields inherited from class ObjectLongMap.MapIterator
currentIndex, hasNext, map, nextIndex -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ObjectLongMap.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
-
ValueIterator
-
-
Method Details
-
nextLong
public long nextLong()Returns the nextlongelement in the iteration.- Specified by:
nextLongin interfaceLongIterator- Returns:
- the next
longelement in the iteration - Throws:
NoSuchElementException- if the iteration has no more elements
-
hasNext
-