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

Method set

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

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

(final int holder)

Source from the content-addressed store, hash-verified

278 * @return the value of holder with the specified bits set to {@code 1}.
279 */
280 public int set(final int holder) {
281 return (int) (holder | mask);
282 }
283
284 /**
285 * Sets the bits.

Callers 10

testEdgeCasesMethod · 0.95
testSetMethod · 0.95
setBooleanMethod · 0.95
setByteMethod · 0.95
setShortMethod · 0.95
addMethod · 0.45
indexesOfMethod · 0.45
removeElementsMethod · 0.45
cloneMethod · 0.45

Calls

no outgoing calls

Tested by 3

testEdgeCasesMethod · 0.76
testSetMethod · 0.76