org.apache.commons.collections.primitives.adapters
public class: IteratorShortIterator [javadoc |
source]
java.lang.Object
org.apache.commons.collections.primitives.adapters.IteratorShortIterator
All Implemented Interfaces:
ShortIterator
Adapts a
Number -valued
Iterator
to the
ShortIterator
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:38 $
- author:
Rodney - Waldhoff
| Method from org.apache.commons.collections.primitives.adapters.IteratorShortIterator Summary: |
|---|
|
hasNext, next, remove, wrap |
| Method from org.apache.commons.collections.primitives.adapters.IteratorShortIterator Detail: |
public boolean hasNext() {
return _iterator.hasNext();
}
|
public short next() {
return ((Number)(_iterator.next())).shortValue();
}
|
public void remove() {
_iterator.remove();
}
|
public static ShortIterator wrap(Iterator iterator) {
return null == iterator ? null : new IteratorShortIterator(iterator);
}
|