Class IntObjectMap.KeyIterator<V>

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

public static class IntObjectMap.KeyIterator<V> extends IntObjectMap.MapIterator<V> implements IntIterator
  • Constructor Details

  • Method Details

    • nextInt

      public int nextInt()
      Description copied from interface: IntIterator
      Returns the next int element in the iteration.
      Specified by:
      nextInt in interface IntIterator
      Returns:
      the next int element in the iteration
    • toList

      public IntList toList()
      Returns a new IntList containing the remaining keys.
    • 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