public class ShortIteratorIterator extends Object implements Iterator
ShortIterator to the
Iterator interface.
This implementation delegates most methods
to the provided ShortIterator
implementation in the "obvious" way.
| Constructor and Description |
|---|
ShortIteratorIterator(ShortIterator iterator)
Creates an
Iterator wrapping
the specified ShortIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
static Iterator |
wrap(ShortIterator iterator)
Create an
Iterator wrapping
the specified ShortIterator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic ShortIteratorIterator(ShortIterator iterator)
Iterator wrapping
the specified ShortIterator.public static Iterator wrap(ShortIterator iterator)
Iterator wrapping
the specified ShortIterator. When
the given iterator is null,
returns null.iterator - the (possibly null)
ShortIterator to wrapIterator wrapping the given
iterator, or null when iterator is
null.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.