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, replaceCharpublic static CharIterator getInstance()
public boolean hasNext()
hasNext in interface java.util.IteratorhasNext in class CharIteratorpublic char nextChar()
throws java.util.NoSuchElementException
nextChar in class CharIteratorjava.util.NoSuchElementException - if there are no more characters (test for
this condition with java.util.Iterator.hasNext()).Copyright 1999-2022 The Apache Software Foundation. All Rights Reserved.