Class LongHashSet.LongIterator
- java.lang.Object
-
- org.apache.activemq.artemis.utils.collections.LongHashSet.LongIterator
-
- All Implemented Interfaces:
java.io.Serializable,java.util.Iterator<java.lang.Long>
- Enclosing class:
- LongHashSet
public final class LongHashSet.LongIterator extends java.lang.Object implements java.util.Iterator<java.lang.Long>, java.io.SerializableIterator 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()java.lang.Longnext()longnextValue()Strongly typed alternative ofIterator.next()to avoid boxing.intremaining()voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.lang.Long>
-
remaining
public int remaining()
-
next
public java.lang.Long next()
- Specified by:
nextin interfacejava.util.Iterator<java.lang.Long>
-
nextValue
public long nextValue()
Strongly typed alternative ofIterator.next()to avoid boxing.- Returns:
- the next int value.
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.lang.Long>
-
-