Set a boolean BitField @param holder the byte data containing the bits we're interested in @param flag indicating whether to set or clear the bits @return the value of holder with the specified bits set or cleared
(final byte holder, final boolean flag)
| 318 | */ |
| 319 | |
| 320 | public byte setByteBoolean(final byte holder, final boolean flag) |
| 321 | { |
| 322 | return flag ? setByte(holder) |
| 323 | : clearByte(holder); |
| 324 | } |
| 325 | } // end public class BitField |
| 326 |