Class IntObjectMap.MapIterator<V>

java.lang.Object
com.github.tommyettinger.ds.IntObjectMap.MapIterator<V>
Direct Known Subclasses:
IntObjectMap.EntryIterator, IntObjectMap.KeyIterator, IntObjectMap.ValueIterator
Enclosing class:
IntObjectMap<V>

public abstract static class IntObjectMap.MapIterator<V> extends Object
  • Field Details

    • INDEX_ILLEGAL

      protected static final int INDEX_ILLEGAL
      See Also:
    • INDEX_ZERO

      protected static final int INDEX_ZERO
      See Also:
    • hasNext

      public boolean hasNext
    • map

      protected final IntObjectMap<V> map
    • nextIndex

      protected int nextIndex
    • currentIndex

      protected int currentIndex
    • valid

      protected boolean valid
  • Constructor Details

  • Method Details

    • reset

      public void reset()
    • findNextIndex

      protected void findNextIndex()
    • hasNext

      public boolean hasNext()
      Returns true if the iteration has more elements. (In other words, returns true if next() would return an element rather than throwing an exception.)
      Returns:
      true if the iteration has more elements
    • remove

      public void remove()