|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.collections.primitives.adapters.IteratorBooleanIterator
public class IteratorBooleanIterator
Adapts a Boolean
-valued Iterator
to the BooleanIterator
interface.
Iterator
implementation in the "obvious" way.
Constructor Summary | |
---|---|
IteratorBooleanIterator(Iterator iterator)
Creates an BooleanIterator wrapping the specified Iterator . |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true iff I have more elements. |
boolean |
next()
Returns the next element in me. |
void |
remove()
Removes from my underlying collection the last element returned by me (optional operation). |
static BooleanIterator |
wrap(Iterator iterator)
Create an BooleanIterator wrapping the specified Iterator . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IteratorBooleanIterator(Iterator iterator)
BooleanIterator
wrapping the specified Iterator
.
wrap(java.util.Iterator)
Method Detail |
---|
public static BooleanIterator wrap(Iterator iterator)
BooleanIterator
wrapping the specified Iterator
. When the given iterator is null
, returns
null
.
iterator
- the (possibly null
)
Iterator
to wrap
BooleanIterator
wrapping the given iterator, or null
when
iterator is null
.public boolean hasNext()
BooleanIterator
true
iff I have more elements. (In other words,
returns true
iff a subsequent call to next
will return an element rather than throwing an exception.)
hasNext
in interface BooleanIterator
true
iff I have more elementspublic boolean next()
BooleanIterator
next
in interface BooleanIterator
public void remove()
BooleanIterator
returned
by me (optional operation).
remove
in interface BooleanIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |