Package io.karma.sliced.iterator.impl
Class ArrayBoolIterator
java.lang.Object
io.karma.sliced.iterator.impl.ArrayBoolIterator
- All Implemented Interfaces:
BoolIterator
,Resettable
,Iterator<Boolean>
- Since:
- 06/09/2022
-
Field Summary
Fields inherited from interface io.karma.sliced.iterator.BoolIterator
NOP
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.karma.sliced.iterator.BoolIterator
next
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
ArrayBoolIterator
public ArrayBoolIterator(boolean[] ref)
-
-
Method Details
-
nextBool
public boolean nextBool()Description copied from interface:BoolIterator
Retrieves the nextboolean
value in the sequence being iterated over.- Specified by:
nextBool
in interfaceBoolIterator
- Returns:
- The next
boolean
value in the sequence being iterated over.
-
reset
public void reset()Description copied from interface:Resettable
Resets the internal states of this object instance.- Specified by:
reset
in interfaceResettable
-
hasNext
public boolean hasNext()
-