public 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, replaceChar
public static CharIterator getInstance()
public boolean hasNext()
hasNext
in class CharIterator
public char nextChar() throws java.util.NoSuchElementException
nextChar
in class CharIterator
java.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.