Package org.agrona.collections
Class ObjectHashSet.ObjectIterator
java.lang.Object
org.agrona.collections.ObjectHashSet.ObjectIterator
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- ObjectHashSet<T>
Iterator over the set which can be optionally cached to avoid allocation.
-
Constructor Details
-
ObjectIterator
public ObjectIterator()Creates a new instance.
-
-
Method Details
-
remaining
public int remaining()Return number of remaining elements.- Returns:
- number of remaining elements.
-
hasNext
public boolean hasNext() -
next
-
nextValue
Get the next value.- Returns:
- the next value.
-
remove
public void remove()
-