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, replaceCharequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic 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 © 2023 Apache Software Foundation. All rights reserved.