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