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

Method growLength

Ports/CLDC11/src/java/util/BitSet.java:192–196  ·  view source on GitHub ↗
(int len)

Source from the content-addressed store, hash-verified

190 ///
191 /// - `len`: the index the new array needs to be able to access.
192 private final void growLength(int len) {
193 long[] tempBits = new long[Math.max(len, bits.length * 2)];
194 System.arraycopy(bits, 0, tempBits, 0, this.actualArrayLength);
195 bits = tempBits;
196 }
197
198 /// Computes the hash code for this `BitSet`. If two `BitSet`s are equal
199 /// the have to return the same result for `hashCode()`.

Callers 2

setMethod · 0.95
flipMethod · 0.95

Calls 2

maxMethod · 0.95
arraycopyMethod · 0.95

Tested by

no test coverage detected