public static class BooleanIterators.UnmodifiableIterator extends Object implements BooleanIterator
| Constructor and Description |
|---|
UnmodifiableIterator(BooleanIterator i) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns
true if the iteration has more elements. |
boolean |
nextBoolean()
Returns the next element as a primitive type.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, forEachRemaining, next, skippublic UnmodifiableIterator(BooleanIterator i)
public boolean hasNext()
java.util.Iteratortrue if the iteration has more elements.
(In other words, returns true if Iterator.next() would
return an element rather than throwing an exception.)public boolean nextBoolean()
BooleanIteratornextBoolean in interface BooleanIteratorIterator.next()