MCPcopy Create free account
hub / github.com/apache/commons-lang / setShort

Method setShort

src/main/java/org/apache/commons/lang3/BitField.java:345–347  ·  view source on GitHub ↗

Sets the bits. @param holder the short data containing the bits we're interested in. @return the value of holder with the specified bits set to 1.

(final short holder)

Source from the content-addressed store, hash-verified

343 * @return the value of holder with the specified bits set to {@code 1}.
344 */
345 public short setShort(final short holder) {
346 return (short) set(holder);
347 }
348
349 /**
350 * Sets a boolean BitField.

Callers 3

setShortBooleanMethod · 0.95
testSetShortMethod · 0.80
testSetShortBooleanMethod · 0.80

Calls 1

setMethod · 0.95

Tested by 2

testSetShortMethod · 0.64
testSetShortBooleanMethod · 0.64