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

Method clear

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

Clears the bits. @param holder the int data containing the bits we're interested in. @return the value of holder with the specified bits cleared (set to 0).

(final int holder)

Source from the content-addressed store, hash-verified

104 * @return the value of holder with the specified bits cleared (set to {@code 0}).
105 */
106 public int clear(final int holder) {
107 return (int) (holder & ~mask);
108 }
109
110 /**
111 * Clears the bits.

Callers 5

testEdgeCasesMethod · 0.95
clearByteMethod · 0.95
clearShortMethod · 0.95
setBooleanMethod · 0.95

Calls

no outgoing calls

Tested by 2

testEdgeCasesMethod · 0.76