MCPcopy Create free account
hub / github.com/BaseXdb/basex / newCapacity

Method newCapacity

basex-core/src/main/java/org/basex/util/Array.java:264–266  ·  view source on GitHub ↗

Returns a value for a new array size, which will always be larger than the old size. The returned value will not exceed the maximum allowed array size. If the maximum is reached, an exception is thrown. @param size old array capacity @return new capacity

(final int size)

Source from the content-addressed store, hash-verified

262 * @return new capacity
263 */
264 public static int newCapacity(final int size) {
265 return newCapacity(size, RESIZE_FACTOR);
266 }
267
268 /**
269 * Returns a value for a new array size, which will always be larger than the old size.

Callers 14

addMethod · 0.95
writeMethod · 0.95
addMethod · 0.95
addMethod · 0.95
addMethod · 0.95
indexMethod · 0.95
addMethod · 0.95
addMethod · 0.95
addMethod · 0.95
addMethod · 0.95
addMethod · 0.95
addByteMethod · 0.95

Calls 2

checkCapacityMethod · 0.95
minMethod · 0.45

Tested by

no test coverage detected