Class IntObjectMap.ValueIterator<V>
java.lang.Object
com.github.tommyettinger.ds.IntObjectMap.MapIterator<V>
com.github.tommyettinger.ds.IntObjectMap.ValueIterator<V>
- All Implemented Interfaces:
Iterator<V>
- Enclosing class:
IntObjectMap<V>
public static class IntObjectMap.ValueIterator<V>
extends IntObjectMap.MapIterator<V>
implements Iterator<V>
-
Field Summary
Fields inherited from class IntObjectMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class IntObjectMap.MapIterator
findNextIndex, remove, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining, remove
-
Constructor Details
-
ValueIterator
-
-
Method Details
-
next
Returns the nextVelement in the iteration.- Specified by:
nextin interfaceIterator<V>- Returns:
- the next
Velement in the iteration - Throws:
NoSuchElementException- if the iteration has no more elements
-
hasNext
public boolean hasNext()Description copied from class:IntObjectMap.MapIteratorReturnstrueif the iteration has more elements. (In other words, returnstrueif next() would return an element rather than throwing an exception.)
-