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

Method isAllSet

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

Tests whether all of the bits are set or not. This is a stricter test than #isSet(int), in that all of the bits in a multi-bit set must be set for this method to return true. @param holder the int data containing the bits we're interested in. @return true if all of

(final int holder)

Source from the content-addressed store, hash-verified

225 * @return {@code true} if all of the bits are set, else {@code false}.
226 */
227 public boolean isAllSet(final int holder) {
228 return (holder & mask) == mask;
229 }
230
231 /**
232 * Tests whether all of the bits are set or not.

Callers 3

testIsSetAndIsAllSetMethod · 0.95
testIsAllSetMethod · 0.80

Calls

no outgoing calls

Tested by 3

testIsSetAndIsAllSetMethod · 0.76
testIsAllSetMethod · 0.64