Class ArrayBoolIterator

java.lang.Object
io.karma.sliced.iterator.impl.ArrayBoolIterator
All Implemented Interfaces:
BoolIterator, Resettable, Iterator<Boolean>

@API(status=INTERNAL) public final class ArrayBoolIterator extends Object implements BoolIterator
Since:
06/09/2022
  • Constructor Details

    • ArrayBoolIterator

      public ArrayBoolIterator(boolean[] ref)
  • Method Details

    • nextBool

      public boolean nextBool()
      Description copied from interface: BoolIterator
      Retrieves the next boolean value in the sequence being iterated over.
      Specified by:
      nextBool in interface BoolIterator
      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 interface Resettable
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Boolean>