Interface CharIterator

All Superinterfaces:
Cloneable
All Known Subinterfaces:
PeekableCharIterator, PeekableCharRankIterator
All Known Implementing Classes:
ArrayContainerCharIterator, BitmapContainerCharIterator, BitmapContainerCharRankIterator, MappeableArrayContainerCharIterator, MappeableBitmapContainerCharIterator, MappeableRunContainerCharIterator, RawArrayContainerCharIterator, RawMappeableRunContainerCharIterator, RawReverseArrayContainerCharIterator, RawReverseMappeableRunContainerCharIterator, ReverseArrayContainerCharIterator, ReverseBitmapContainerCharIterator, ReverseMappeableArrayContainerCharIterator, ReverseMappeableBitmapContainerCharIterator, ReverseMappeableRunContainerCharIterator, ReverseRunContainerCharIterator, RunContainerCharIterator, RunContainerCharRankIterator

public interface CharIterator extends Cloneable
Iterator over short values.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a copy of the iterator.
    boolean
     
    char
     
    int
     
    void
    If possible, remove the current value
  • Method Details

    • clone

      CharIterator clone()
      Creates a copy of the iterator.
      Returns:
      a clone of the current iterator
    • hasNext

      boolean hasNext()
      Returns:
      whether there is another value
    • next

      char next()
      Returns:
      next char value
    • nextAsInt

      int nextAsInt()
      Returns:
      next short value as int value (using the least significant 16 bits)
    • remove

      void remove()
      If possible, remove the current value