Package com.github.tommyettinger.ds
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 com.github.tommyettinger.ds.ObjectLongMap.MapIterator
currentIndex, hasNext, map, nextIndex, valid -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.tommyettinger.ds.ObjectLongMap.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
-
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
public boolean hasNext()
-