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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private int
private int
private int
-
Constructor Summary
Constructors -
Method Summary
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
-
Field Details
-
remaining
private int remaining -
positionCounter
private int positionCounter -
stopCounter
private int stopCounter -
isPositionValid
private boolean isPositionValid
-
-
Constructor Details
-
ObjectIterator
public ObjectIterator()
-
-
Method Details
-
reset
ObjectHashSet<T>.ObjectIterator reset() -
remaining
public int remaining()Return number of remaining elements.- Returns:
- number of remaining elements.
-
hasNext
public boolean hasNext() -
next
-
nextValue
- Returns:
- the next value.
-
remove
public void remove() -
position
-