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, replaceCharequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static CharIterator getInstance()
public boolean hasNext()
hasNext in interface IteratorhasNext in class CharIteratorpublic char nextChar()
throws NoSuchElementException
nextChar in class CharIteratorNoSuchElementException - if there are no more characters (test for
this condition with java.util.Iterator.hasNext()).Copyright © 2023 Apache Software Foundation. All rights reserved.