Interface CharIterator


public interface CharIterator
This class represents iterators over collections of char values.
Since:
1.0
Version:
1.0 2002/29/12
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether more char values can be returned by this iterator.
    char
    Returns the next char value of this iterator.
    void
    Removes the last char value returned from the underlying collection.
  • Method Details

    • hasNext

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

      char next()
      Returns the next char value of this iterator.
      Returns:
      the next char value of this iterator.
      See Also:
    • remove

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