MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / clear

Method clear

Ports/CLDC11/src/java/util/BitSet.java:496–505  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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`.

Callers 1

setMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected