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