java.lang.Cloneable, java.util.Iteratorpublic class NullCharIterator extends CharIterator
| Constructor | Description |
|---|---|
NullCharIterator() |
Constructor
|
| Modifier and Type | Method | 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-2016 The Apache Software Foundation. All Rights Reserved.