Interface IntKeyMapIterator<V>


public interface IntKeyMapIterator<V>
This interface represents iterators over maps from int values to objects.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the key of the current entry of this iterator.
    Returns the value of the current entry of this iterator.
    boolean
    Indicates whether more entries can be returned by this iterator.
    void
    Advances to the next entry of this iterator.
    void
    Removes the last entry value returned from the underlying map.
  • Method Details

    • hasNext

      boolean hasNext()
      Indicates whether more entries can be returned by this iterator.
      Returns:
      true if more int entries can be returned by this iterator; returns false otherwise.
      See Also:
    • next

      void next()
      Advances to the next entry of this iterator.
      Throws:
      NoSuchElementException - if no more entries are available from this iterator.
      See Also:
    • remove

      void remove()
      Removes the last entry value returned from the underlying map.
      Throws:
      UnsupportedOperationException - if removal is not supported by this iterator.
      IllegalStateException - if no entry has been returned by this iterator yet.
    • getKey

      int getKey()
      Returns the key of the current entry of this iterator.
      Returns:
      the key of the current entry of this iterator.
      Throws:
      IllegalStateException - if there is no current entry (i.e. if next() has not been called or remove() has just been called.
      See Also:
    • getValue

      V getValue()
      Returns the value of the current entry of this iterator.
      Returns:
      the value of the current entry of this iterator (which may be null).
      Throws:
      IllegalStateException - if there is no current entry (i.e. if next() has not been called or remove() has just been called.
      See Also: