(BitSet bs)
| 774 | /// |
| 775 | /// - #and |
| 776 | public void or(BitSet bs) { |
| 777 | int bsActualLen = bs.getActualArrayLength(); |
| 778 | if (bsActualLen > bits.length) { |
| 779 | long[] tempBits = new long[bsActualLen]; |
| 780 | System.arraycopy(bs.bits, 0, tempBits, 0, bs.actualArrayLength); |
| 781 | for (int i = 0; i < actualArrayLength; i++) { |
| 782 | tempBits[i] |= bits[i]; |
| 783 | } |
| 784 | bits = tempBits; |
| 785 | actualArrayLength = bsActualLen; |
| 786 | isLengthActual = true; |
| 787 | } else { |
| 788 | long[] bsBits = bs.bits; |
| 789 | for (int i = 0; i < bsActualLen; i++) { |
| 790 | bits[i] |= bsBits[i]; |
| 791 | } |
| 792 | if (bsActualLen > actualArrayLength) { |
| 793 | actualArrayLength = bsActualLen; |
| 794 | isLengthActual = true; |
| 795 | } |
| 796 | } |
| 797 | needClear(); |
| 798 | } |
| 799 | |
| 800 | /// Performs the logical XOR of this `BitSet` with another `BitSet`. |
| 801 | /// The values of this `BitSet` are changed accordingly. |
nothing calls this directly
no test coverage detected