Interface IBitSet.Action<R>

Type Parameters:
R - type of final result of the action
Enclosing interface:
IBitSet

public static interface IBitSet.Action<R>
Action on set bits.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(int bitIndex)
    Performs this action on given bit index.
     
  • Method Details

    • accept

      boolean accept(int bitIndex)
      Performs this action on given bit index.
      Parameters:
      bitIndex - the input bit index.
      Returns:
      true if the iteration should keep going after processing bitIndex.
    • getResult

      R getResult()
      Returns:
      the final result of the iteration.