code: public void set(ShortBitMask mask, boolean value) {
          this.flag = LogicUtil.setBit(this.flag, mask.getMask(), value);
      }
docs: Sets the current state of a bit using a mask
  
  @param mask to use
  @param value to set the bit to