Class LongLongMap.ValueIterator
java.lang.Object
com.github.tommyettinger.ds.LongLongMap.MapIterator
com.github.tommyettinger.ds.LongLongMap.ValueIterator
- All Implemented Interfaces:
LongIterator, Iterator<Long>
- Enclosing class:
LongLongMap
public static class LongLongMap.ValueIterator
extends LongLongMap.MapIterator
implements LongIterator
-
Field Summary
Fields inherited from class LongLongMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LongLongMap.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
public boolean hasNext()Description copied from class:LongLongMap.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 classLongLongMap.MapIterator- Returns:
trueif the iteration has more elements
-