Set a boolean BitField @param holder the short 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 short holder, final boolean flag)
| 301 | */ |
| 302 | |
| 303 | public short setShortBoolean(final short holder, final boolean flag) |
| 304 | { |
| 305 | return flag ? setShort(holder) |
| 306 | : clearShort(holder); |
| 307 | } |
| 308 | |
| 309 | /** |
| 310 | * Set a boolean BitField |