Class ObjectLongMap.ValueIterator<K>

java.lang.Object
com.github.tommyettinger.ds.ObjectLongMap.MapIterator<K>
com.github.tommyettinger.ds.ObjectLongMap.ValueIterator<K>
All Implemented Interfaces:
LongIterator, Iterator<Long>
Enclosing class:
ObjectLongMap<K>

public static class ObjectLongMap.ValueIterator<K> extends ObjectLongMap.MapIterator<K> implements LongIterator
  • Constructor Details

  • Method Details

    • nextLong

      public long nextLong()
      Returns the next long element in the iteration.
      Specified by:
      nextLong in interface LongIterator
      Returns:
      the next long element in the iteration
      Throws:
      NoSuchElementException - if the iteration has no more elements
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<K>