()
| 494 | /// |
| 495 | /// - #clear(int, int) |
| 496 | public void clear() { |
| 497 | if (needClear) { |
| 498 | for (int i = 0; i < bits.length; i++) { |
| 499 | bits[i] = 0L; |
| 500 | } |
| 501 | actualArrayLength = 0; |
| 502 | isLengthActual = true; |
| 503 | needClear = false; |
| 504 | } |
| 505 | } |
| 506 | |
| 507 | /// Clears the bit at index `pos`. Grows the `BitSet` if |
| 508 | /// `pos > size`. |