Class IntObjectMap.ValueIterator<V>

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

public static class IntObjectMap.ValueIterator<V> extends IntObjectMap.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: IntObjectMap.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 IntObjectMap.MapIterator<V>
      Returns:
      true if the iteration has more elements