Class Long2ObjectHashMap.ValueIterator

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

public final class Long2ObjectHashMap.ValueIterator extends Object
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.
    • remaining

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

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

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

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