public abstract class CharIterator extends Object implements Iterator, Cloneable
Constructor and Description |
---|
CharIterator() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
abstract boolean |
hasNext() |
Object |
next() |
abstract char |
nextChar() |
void |
remove() |
void |
replaceChar(char c)
Replace the current character managed by the iterator with a specified
character?
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public abstract char nextChar() throws NoSuchElementException
NoSuchElementException
- if there are no more characters (test for
this condition with java.util.Iterator.hasNext()).public Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
public void replaceChar(char c)
c
- characterCopyright © 2025 Apache Software Foundation. All rights reserved.