org.apache.commons.collections.primitives.adapters
public class IteratorShortIterator extends Object implements ShortIterator
java.lang.Number Number
-valued
Iterator Iterator
to the ShortIterator
interface.
This implementation delegates most methods
to the provided Iterator Iterator
implementation in the "obvious" way.
Since: Commons Primitives 1.0
Version: $Revision: 1.3 $ $Date: 2003/10/16 20:49:38 $
Field Summary | |
---|---|
Iterator | _iterator |
Constructor Summary | |
---|---|
IteratorShortIterator(Iterator iterator)
Creates an ShortIterator wrapping
the specified Iterator Iterator . |
Method Summary | |
---|---|
boolean | hasNext() |
short | next() |
void | remove() |
static ShortIterator | wrap(Iterator iterator)
Create an ShortIterator wrapping
the specified Iterator Iterator . |
ShortIterator
wrapping
the specified Iterator Iterator
. When
the given iterator is null
,
returns null
.
Parameters: iterator the (possibly null
)
Iterator Iterator
to wrap
Returns: an ShortIterator
wrapping the given
iterator, or null
when iterator is
null
.