接口 CharIterator

所有超级接口:
Cloneable
所有已知子接口:
PeekableCharIterator, PeekableCharRankIterator

public interface CharIterator extends Cloneable
Iterator over short values.
  • 方法概要

    修饰符和类型
    方法
    说明
    Creates a copy of the iterator.
    boolean
     
    char
     
    int
     
    void
    If possible, remove the current value
  • 方法详细资料

    • clone

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

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

      char next()
      返回:
      next char value
    • nextAsInt

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

      void remove()
      If possible, remove the current value