Class LongIntMap.ValueIterator

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

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

    • ValueIterator

      public ValueIterator(LongIntMap 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: LongIntMap.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 LongIntMap.MapIterator
      Returns:
      true if the iteration has more elements