Class EnumIntMap.ValueIterator

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

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

    • ValueIterator

      public ValueIterator(EnumIntMap 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()
      Specified by:
      hasNext in interface Iterator<Integer>