public final class BooleanIterator extends java.lang.Object implements Iterator<java.lang.Boolean>
Constructor and Description |
---|
BooleanIterator()
Constructs a boolean iterator.
|
Modifier and Type | Method and Description |
---|---|
BooleanIterator |
clone()
Returns a copy of the iterator.
|
boolean |
hasValue()
Checks if the iterator is not exhausted (a value is available).
|
void |
init()
Initializes the iterator.
|
void |
next()
Makes an iteration.
|
void |
setValue(boolean value)
Sets the current value of the iterator.
|
void |
stop()
Stops the iterator.
|
java.lang.Boolean |
value()
Returns the current value of the iterator.
|
public void setValue(boolean value)
value
- the value to be set.public void init()
Iterator
public boolean hasValue()
Iterator
public java.lang.Boolean value()
Iterator
public void next()
Iterator
public void stop()
Iterator
public BooleanIterator clone()
Iterator