Package com.github.tommyettinger.ds
Class LongLongMap.EntryIterator
java.lang.Object
com.github.tommyettinger.ds.LongLongMap.MapIterator
com.github.tommyettinger.ds.LongLongMap.EntryIterator
- All Implemented Interfaces:
Iterable<LongLongMap.Entry>,Iterator<LongLongMap.Entry>
- Enclosing class:
- LongLongMap
public static class LongLongMap.EntryIterator
extends LongLongMap.MapIterator
implements Iterable<LongLongMap.Entry>, Iterator<LongLongMap.Entry>
-
Field Summary
FieldsFields inherited from class com.github.tommyettinger.ds.LongLongMap.MapIterator
currentIndex, hasNext, INDEX_ILLEGAL, INDEX_ZERO, map, nextIndex, valid -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.github.tommyettinger.ds.LongLongMap.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<LongLongMap.Entry>
-
next
Note the same entry instance is returned each time this method is called.- Specified by:
nextin interfaceIterator<LongLongMap.Entry>
-
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<LongLongMap.Entry>- Overrides:
hasNextin classLongLongMap.MapIterator- Returns:
trueif the iteration has more elements
-