Package org.agrona.collections
Class Int2ObjectCache.AbstractIterator<T>
java.lang.Object
org.agrona.collections.Int2ObjectCache.AbstractIterator<T>
- Type Parameters:
T
- type of elements.
- All Implemented Interfaces:
Iterator<T>
- Direct Known Subclasses:
Int2ObjectCache.EntryIterator
,Int2ObjectCache.KeyIterator
,Int2ObjectCache.ValueIterator
- Enclosing class:
Int2ObjectCache<V>
Base iterator implementation that contains basic logic of traversing the element in the backing array.
-
Field Details
-
remaining
private int remaining -
position
private int position
-
-
Constructor Details
-
AbstractIterator
AbstractIterator()
-
-
Method Details
-
position
protected final int position()Position of the current element.- Returns:
- position of the current element.
-
hasNext
public boolean hasNext() -
findNext
protected final void findNext()Find next element. -
next
-
remove
public void remove() -
reset
void reset()
-