|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.collections.primitives.adapters.IteratorCharIterator
Adapts a Number
-valued
Iterator
to the CharIterator
interface.
Iterator
implementation in the "obvious" way.
Constructor Summary | |
IteratorCharIterator(Iterator iterator)
Creates an CharIterator wrapping
the specified Iterator . |
Method Summary | |
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 org.apache.commons.collections.primitives.CharIterator |
wrap(Iterator iterator)
Create an CharIterator wrapping
the specified Iterator . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IteratorCharIterator(Iterator iterator)
CharIterator
wrapping
the specified Iterator
.
wrap(java.util.Iterator)
Method Detail |
public static org.apache.commons.collections.primitives.CharIterator wrap(Iterator iterator)
CharIterator
wrapping
the specified Iterator
. When
the given iterator is null
,
returns null
.
iterator
- the (possibly null
)
Iterator
to wrap
CharIterator
wrapping the given
iterator, or null
when iterator is
null
.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
public void remove()
CharIterator
returned
by me
(optional operation).
remove
in interface CharIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |