Class LongObjectMap.ValueIterator<V>

java.lang.Object
com.github.tommyettinger.ds.LongObjectMap.MapIterator<V>
com.github.tommyettinger.ds.LongObjectMap.ValueIterator<V>
All Implemented Interfaces:
Iterator<V>
Enclosing class:
LongObjectMap<V>

public static class LongObjectMap.ValueIterator<V> extends LongObjectMap.MapIterator<V> implements Iterator<V>
  • Constructor Details

  • Method Details

    • next

      public V next()
      Returns the next V element in the iteration.
      Specified by:
      next in interface Iterator<V>
      Returns:
      the next V element in the iteration
      Throws:
      NoSuchElementException - if the iteration has no more elements
    • hasNext

      public boolean hasNext()
      Description copied from class: LongObjectMap.MapIterator
      Returns true if the iteration has more elements. (In other words, returns true if next() would return an element rather than throwing an exception.)
      Specified by:
      hasNext in interface Iterator<V>
      Overrides:
      hasNext in class LongObjectMap.MapIterator<V>
      Returns:
      true if the iteration has more elements