(BitSet otherBits)
| 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); |