Class LongHashSet.LongIterator
- java.lang.Object
-
- org.apache.activemq.artemis.utils.collections.LongHashSet.LongIterator
-
- All Implemented Interfaces:
Serializable,Iterator<Long>
- Enclosing class:
- LongHashSet
public final class LongHashSet.LongIterator extends Object implements Iterator<Long>, Serializable
Iterator which supports unboxed access to values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LongIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Longnext()longnextValue()Strongly typed alternative ofIterator.next()to avoid boxing.intremaining()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
remaining
public int remaining()
-
nextValue
public long nextValue()
Strongly typed alternative ofIterator.next()to avoid boxing.- Returns:
- the next int value.
-
-