Class IntIntMap.EntryIterator
java.lang.Object
com.github.tommyettinger.ds.IntIntMap.MapIterator
com.github.tommyettinger.ds.IntIntMap.EntryIterator
- All Implemented Interfaces:
Iterable<IntIntMap.Entry>, Iterator<IntIntMap.Entry>
- Enclosing class:
IntIntMap
public static class IntIntMap.EntryIterator
extends IntIntMap.MapIterator
implements Iterable<IntIntMap.Entry>, Iterator<IntIntMap.Entry>
-
Field Summary
Fields inherited from class IntIntMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class IntIntMap.MapIterator
remove, resetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Iterator
forEachRemaining, remove
-
Constructor Details
-
EntryIterator
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<IntIntMap.Entry>
-
next
Note the same entry instance is returned each time this method is called.- Specified by:
nextin interfaceIterator<IntIntMap.Entry>
-
hasNext
public boolean hasNext()Description copied from class:IntIntMap.MapIteratorReturnstrueif the iteration has more elements. (In other words, returnstrueif next() would return an element rather than throwing an exception.)- Specified by:
hasNextin interfaceIterator<IntIntMap.Entry>- Overrides:
hasNextin classIntIntMap.MapIterator- Returns:
trueif the iteration has more elements
-