public class NullCharIterator extends CharIterator
Constructor and Description |
---|
NullCharIterator()
Constructor
|
Modifier and Type | Method and Description |
---|---|
static CharIterator |
getInstance()
Obtain the singleton instance of the null character iterator.
|
boolean |
hasNext() |
char |
nextChar() |
clone, next, remove, replaceChar
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public static CharIterator getInstance()
public boolean hasNext()
hasNext
in interface Iterator
hasNext
in class CharIterator
public char nextChar() throws NoSuchElementException
nextChar
in class CharIterator
NoSuchElementException
- if there are no more characters (test for
this condition with java.util.Iterator.hasNext()).Copyright © 2025 Apache Software Foundation. All rights reserved.