Package cn.nukkit.utils.collection.nb
Class Long2ObjectNonBlockingMap.IteratorLong
java.lang.Object
cn.nukkit.utils.collection.nb.Long2ObjectNonBlockingMap.IteratorLong
- All Implemented Interfaces:
it.unimi.dsi.fastutil.longs.LongIterator
,Enumeration<Long>
,Iterator<Long>
,PrimitiveIterator<Long,
,LongConsumer> PrimitiveIterator.OfLong
- Enclosing class:
- Long2ObjectNonBlockingMap<TypeV>
public class Long2ObjectNonBlockingMap.IteratorLong
extends Object
implements Iterator<Long>, Enumeration<Long>, it.unimi.dsi.fastutil.longs.LongIterator
A class which implements the
Iterator
and Enumeration
interfaces, generified to the Long
class and supporting a
non-auto-boxing nextLong()
function.-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
True if there are more keys to iterate over.boolean
hasNext()
True if there are more keys to iterate over.next()
Auto-box and return the next key.Auto-box and return the next key.long
nextLong()
Return the next key as a primitivelong
.void
remove()
Remove last key returned bynext()
ornextLong()
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongIterator
forEachRemaining, forEachRemaining, skip
Methods inherited from interface java.util.PrimitiveIterator.OfLong
forEachRemaining
-
Constructor Details
-
IteratorLong
public IteratorLong()A new IteratorLong
-
-
Method Details
-
remove
public void remove()Remove last key returned bynext()
ornextLong()
. -
next
Auto-box and return the next key.- Specified by:
next
in interfaceIterator<Long>
- Specified by:
next
in interfaceit.unimi.dsi.fastutil.longs.LongIterator
- Specified by:
next
in interfacePrimitiveIterator.OfLong
-
nextLong
public long nextLong()Return the next key as a primitivelong
.- Specified by:
nextLong
in interfaceit.unimi.dsi.fastutil.longs.LongIterator
- Specified by:
nextLong
in interfacePrimitiveIterator.OfLong
-
hasNext
public boolean hasNext()True if there are more keys to iterate over. -
nextElement
Auto-box and return the next key.- Specified by:
nextElement
in interfaceEnumeration<Long>
-
hasMoreElements
public boolean hasMoreElements()True if there are more keys to iterate over.- Specified by:
hasMoreElements
in interfaceEnumeration<Long>
-