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

Method xor

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

Source from the content-addressed store, hash-verified

78 }
79
80 public void xor(BitSet otherBits) {
81 int max = Math.max(bits.length, otherBits.bits.length);
82 enlarge(max);
83 int min = Math.min(bits.length, otherBits.bits.length);
84 for (int i = 0; i < min; i++) {
85 bits[i] ^= otherBits.bits[i];
86 }
87 }
88
89 private void enlarge(int newPartition) {
90 if (bits == null || bits.length < (newPartition + 1)) {

Callers

nothing calls this directly

Calls 3

maxMethod · 0.95
enlargeMethod · 0.95
minMethod · 0.95

Tested by

no test coverage detected