public abstract class CharIterator
extends java.lang.Object
implements java.util.Iterator, java.lang.Cloneable
| Constructor and Description |
|---|
CharIterator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
abstract boolean |
hasNext() |
java.lang.Object |
next() |
abstract char |
nextChar() |
void |
remove() |
void |
replaceChar(char c)
Replace the current character managed by the iterator with a specified
character?
|
public abstract boolean hasNext()
hasNext in interface java.util.Iteratorpublic abstract char nextChar()
throws java.util.NoSuchElementException
java.util.NoSuchElementException - if there are no more characters (test for
this condition with java.util.Iterator.hasNext()).public java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementExceptionpublic void remove()
remove in interface java.util.Iteratorpublic void replaceChar(char c)
c - characterpublic java.lang.Object clone()
clone in class java.lang.ObjectCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.