Class IntIntMap.ValueIterator

java.lang.Object
com.github.tommyettinger.ds.IntIntMap.MapIterator
com.github.tommyettinger.ds.IntIntMap.ValueIterator
All Implemented Interfaces:
IntIterator, Iterator<Integer>
Enclosing class:
IntIntMap

public static class IntIntMap.ValueIterator extends IntIntMap.MapIterator implements IntIterator
  • Constructor Details

    • ValueIterator

      public ValueIterator(IntIntMap map)
  • Method Details

    • nextInt

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

      public boolean hasNext()
      Description copied from class: IntIntMap.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<Integer>
      Overrides:
      hasNext in class IntIntMap.MapIterator
      Returns:
      true if the iteration has more elements