public final class UnmodifiableCharIterator extends Object
Modifier and Type | Method and Description |
---|---|
protected CharIterator |
getIterator() |
boolean |
hasNext()
Returns
true iff I have more elements. |
char |
next()
Returns the next element in me.
|
void |
remove()
Removes from my underlying collection the last
element
returned by me
(optional operation). |
static CharIterator |
wrap(CharIterator iterator) |
public void remove()
CharIterator
returned
by me
(optional operation).protected CharIterator getIterator()
public static final CharIterator wrap(CharIterator iterator)
public boolean hasNext()
CharIterator
true
iff I have more elements.
(In other words, returns true
iff
a subsequent call to next
will return
an element rather than throwing an exception.)hasNext
in interface CharIterator
true
iff I have more elementspublic char next()
CharIterator
next
in interface CharIterator
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.