org.apache.commons.collections.primitives.adapters
public class: IteratorCharIterator [javadoc |
source]
java.lang.Object
org.apache.commons.collections.primitives.adapters.IteratorCharIterator
All Implemented Interfaces:
CharIterator
Adapts a
Number -valued
Iterator
to the
CharIterator
interface.
This implementation delegates most methods
to the provided
Iterator
implementation in the "obvious" way.
- since:
Commons - Primitives 1.0
- version:
$ - Revision: 1.3 $ $Date: 2003/10/16 20:49:39 $
- author:
Rodney - Waldhoff
| Method from org.apache.commons.collections.primitives.adapters.IteratorCharIterator Summary: |
|---|
|
hasNext, next, remove, wrap |
| Method from org.apache.commons.collections.primitives.adapters.IteratorCharIterator Detail: |
public boolean hasNext() {
return _iterator.hasNext();
}
|
public char next() {
return ((Character)(_iterator.next())).charValue();
}
|
public void remove() {
_iterator.remove();
}
|
public static CharIterator wrap(Iterator iterator) {
return null == iterator ? null : new IteratorCharIterator(iterator);
}
Create an CharIterator wrapping
the specified Iterator . When
the given iterator is null,
returns null. |