Package org.agrona.collections
Class LongHashSet.LongIterator
java.lang.Object
org.agrona.collections.LongHashSet.LongIterator
- Enclosing class:
- LongHashSet
Iterator which supports unboxed access to the values via
nextValue().-
Constructor Details
-
LongIterator
public LongIterator()Create a new instance.
-
-
Method Details
-
hasNext
public boolean hasNext() -
remaining
public int remaining()Returns number of remaining (not yet visited) elements.- Returns:
- number of remaining elements.
-
next
-
nextValue
public long nextValue()Strongly typed alternative ofIterator.next()to avoid boxing.- Returns:
- the next long value.
-
remove
public void remove()
-