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