public class CharIteratorIterator extends Object implements Iterator
CharIterator to the
Iterator interface.
This implementation delegates most methods
to the provided CharIterator
implementation in the "obvious" way.| Constructor and Description |
|---|
CharIteratorIterator(CharIterator iterator)
Creates an
Iterator wrapping
the specified CharIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
static Iterator |
wrap(CharIterator iterator)
Create an
Iterator wrapping
the specified CharIterator. |
public CharIteratorIterator(CharIterator iterator)
Iterator wrapping
the specified CharIterator.public static Iterator wrap(CharIterator iterator)
Iterator wrapping
the specified CharIterator. When
the given iterator is null,
returns null.iterator - the (possibly null)
CharIterator to wrapIterator wrapping the given
iterator, or null when iterator is
null.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.