it.unimi.dsi.fastutil.booleans
Class BooleanIterators.UnmodifiableIterator
java.lang.Object
it.unimi.dsi.fastutil.booleans.AbstractBooleanIterator
it.unimi.dsi.fastutil.booleans.BooleanIterators.UnmodifiableIterator
- All Implemented Interfaces:
- BooleanIterator, Iterator<Boolean>
- Enclosing class:
- BooleanIterators
public static class BooleanIterators.UnmodifiableIterator
- extends AbstractBooleanIterator
An unmodifiable wrapper class for iterators.
Method Summary |
boolean |
hasNext()
|
Boolean |
next()
Delegates to the corresponding type-specific method. |
boolean |
nextBoolean()
Delegates to the corresponding generic method. |
BooleanIterators.UnmodifiableIterator
public BooleanIterators.UnmodifiableIterator(BooleanIterator i)
hasNext
public boolean hasNext()
nextBoolean
public boolean nextBoolean()
- Description copied from class:
AbstractBooleanIterator
- Delegates to the corresponding generic method.
- Specified by:
nextBoolean
in interface BooleanIterator
- Overrides:
nextBoolean
in class AbstractBooleanIterator
- Returns:
- the next element in the iteration.
- See Also:
Iterator.next()
next
public Boolean next()
- Description copied from class:
AbstractBooleanIterator
- Delegates to the corresponding type-specific method.
- Specified by:
next
in interface Iterator<Boolean>
- Overrides:
next
in class AbstractBooleanIterator