java.lang.Cloneable, java.util.Iteratorpublic class OneCharIterator extends CharIterator
| Constructor | Description |
|---|---|
OneCharIterator(char c) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
hasNext() |
|
char |
nextChar() |
clone, next, remove, replaceCharpublic OneCharIterator(char c)
c - the character that this iterator should iterate.public boolean hasNext()
CharIteratorhasNext in interface java.util.IteratorhasNext in class CharIteratorpublic char nextChar()
throws java.util.NoSuchElementException
nextChar in class CharIteratorjava.util.NoSuchElementException - if past the first characterCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.