Class Long2ObjectCache.ValueIterator

java.lang.Object
org.agrona.collections.Long2ObjectCache.ValueIterator
All Implemented Interfaces:
Iterator<V>
Enclosing class:
Long2ObjectCache<V>

public final class Long2ObjectCache.ValueIterator extends Object
An iterator over values.
  • Constructor Details

    • ValueIterator

      public ValueIterator()
      Create a new instance.
  • Method Details

    • next

      public V next()
      Specified by:
      next in interface Iterator<V>
    • position

      protected final int position()
      Position of the current element.
      Returns:
      position of the current element.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • findNext

      protected final void findNext()
      Find next element.
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>