Interface CharIterator

All Superinterfaces:
Iterator<Character>, PrimitiveIterator<Character,CharConsumer>

public interface CharIterator extends PrimitiveIterator<Character,CharConsumer>
A type-specific Iterator; provides an additional method to avoid (un)boxing, and the possibility to skip elements.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface java.util.PrimitiveIterator

    PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Performs the given action for each remaining element until all elements have been processed or the action throws an exception.
    default void
    Deprecated.
    Please use the corresponding type-specific method instead.
    default void
    Performs the given action for each remaining element, performing widening primitive casts, until all elements have been processed or the action throws an exception.
    default Character
    Deprecated.
    Please use the corresponding type-specific method instead.
    char
    Returns the next element as a primitive type.
    default int
    skip(int n)
    Skips the given number of elements.

    Methods inherited from interface java.util.Iterator

    hasNext, remove