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

Method isSet

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

Tests whether the field is set or not. This is most commonly used for a single-bit field, which is often used to represent a boolean value; the results of using it for a multi-bit field is to determine whether any of its bits are set. @param holder the int data containing the bits

(final int holder)

Source from the content-addressed store, hash-verified

253 * @return {@code true} if any of the bits are set, else {@code false}
254 */
255 public boolean isSet(final int holder) {
256 return (holder & mask) != 0;
257 }
258
259 /**
260 * Tests whether the field is set or not.

Callers 5

testIsSetAndIsAllSetMethod · 0.95
testByteBooleanMethod · 0.45
testIsSetMethod · 0.45
testByteBooleanMethod · 0.45

Calls

no outgoing calls

Tested by 5

testIsSetAndIsAllSetMethod · 0.76
testByteBooleanMethod · 0.36
testIsSetMethod · 0.36
testByteBooleanMethod · 0.36