public class OneCharIterator extends CharIterator
| Constructor and Description |
|---|
OneCharIterator(char c)
Constructor
|
| Modifier and Type | Method and 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 IteratorhasNext in class CharIteratorpublic char nextChar()
throws NoSuchElementException
nextChar in class CharIteratorNoSuchElementException - if past the first characterCopyright © 2019 Apache Software Foundation. All rights reserved.