code: public static int setBit(int value, int bitNumber, boolean bitValue) {
      if (bitValue) {
        return setBitOn(value, bitNumber);
      } else {
        return setBitOff(value, bitNumber);
      }
    }
docs: Set bit to '0' or '1' in the given int.
  
  @param current
  integer value
  @param bitNumber
  number of the bit to set to '0' or '1' (right first bit starting at 1).
  @param bitValue
  if true, bit set to '1'. If false, '0'.