public interface PeekableCharIterator extends CharIterator
| 限定符和类型 | 方法和说明 |
|---|---|
void |
advanceIfNeeded(char thresholdVal)
If needed,
when iterating forward through the chars it will
advance as long as the next value is smaller than val (as an unsigned
short)
when iterating in reverse through the chars it will
advance as long as the next value is larger than val (as an unsigned
short)
|
PeekableCharIterator |
clone()
Creates a copy of the iterator.
|
char |
peekNext()
Look at the next value without advancing
|
hasNext, next, nextAsInt, removevoid advanceIfNeeded(char thresholdVal)
thresholdVal - thresholdchar peekNext()
PeekableCharIterator clone()
clone 在接口中 CharIterator