public class LongIteratorIterator extends Object implements Iterator
LongIterator to the
Iterator interface.
This implementation delegates most methods
to the provided LongIterator
implementation in the "obvious" way.| Constructor and Description |
|---|
LongIteratorIterator(LongIterator iterator)
Creates an
Iterator wrapping
the specified LongIterator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
static Iterator |
wrap(LongIterator iterator)
Create an
Iterator wrapping
the specified LongIterator. |
public LongIteratorIterator(LongIterator iterator)
Iterator wrapping
the specified LongIterator.public static Iterator wrap(LongIterator iterator)
Iterator wrapping
the specified LongIterator. When
the given iterator is null,
returns null.iterator - the (possibly null)
LongIterator to wrapIterator wrapping the given
iterator, or null when iterator is
null.Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.