Class Object2ObjectHashMap.ValueIterator

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

public final class Object2ObjectHashMap.ValueIterator extends Object implements Iterator<V>
An iterator over values.
  • Field Details

    • isPositionValid

      protected boolean isPositionValid
      Is position valid.
  • Constructor Details

    • ValueIterator

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

    • next

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

      public int remaining()
      Return number of remaining elements.
      Returns:
      number of remaining elements.
    • hasNext

      public boolean hasNext()
      Check if there is next element to iterate.
      Returns:
      true if remaining > 0.
    • findNext

      protected final void findNext()
      Find next element.
      Throws:
      NoSuchElementException - if no more elements.
    • remove

      public void remove()
      Removes from the underlying collection the last element returned by this iterator.