|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.adapters.IntIteratorIterator
public class IntIteratorIterator
Adapts an IntIterator
to the
Iterator
interface.
IntIterator
implementation in the "obvious" way.
Field Summary | |
---|---|
private IntIterator |
_iterator
|
Constructor Summary | |
---|---|
IntIteratorIterator(IntIterator iterator)
Creates an Iterator wrapping
the specified IntIterator . |
Method Summary | |
---|---|
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
|
static java.util.Iterator |
wrap(IntIterator iterator)
Create an Iterator wrapping
the specified IntIterator . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IntIterator _iterator
Constructor Detail |
---|
public IntIteratorIterator(IntIterator iterator)
Iterator
wrapping
the specified IntIterator
.
wrap(org.apache.commons.collections.primitives.IntIterator)
Method Detail |
---|
public static java.util.Iterator wrap(IntIterator iterator)
Iterator
wrapping
the specified IntIterator
. When
the given iterator is null
,
returns null
.
iterator
- the (possibly null
)
IntIterator
to wrap
Iterator
wrapping the given
iterator, or null
when iterator is
null
.public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
public void remove()
remove
in interface java.util.Iterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |