MCPcopy Create free account
hub / github.com/ReadyTalk/avian / and

Method and

classpath/java/util/BitSet.java:52–60  ·  view source on GitHub ↗
(BitSet otherBits)

Source from the content-addressed store, hash-verified

50 }
51
52 public void and(BitSet otherBits) {
53 int min = Math.min(bits.length, otherBits.bits.length);
54 for (int i = 0; i < min; i++) {
55 bits[i] &= otherBits.bits[i];
56 }
57 for (int i = min; i < bits.length; i++) {
58 bits[i] = 0;
59 }
60 }
61
62 public void andNot(BitSet otherBits) {
63 int max = Math.max(bits.length, otherBits.bits.length);

Callers 1

mainMethod · 0.95

Calls 1

minMethod · 0.95

Tested by 1

mainMethod · 0.76