MCPcopy Create free account
hub / github.com/apache/commons-lang / clear

Method clear

src/main/java/org/apache/commons/lang3/ArrayFill.java:44–46  ·  view source on GitHub ↗

Fills and returns the given array, assigning 0 to each element of the array. ArrayFill.fill(a, (byte) 0); @param a the array to fill (may be null). @return the given array. @see Arrays#fill(byte[],byte) @see ArrayFill#fill(byte[],byte) @since 3.21.0

(final byte[] a)

Source from the content-addressed store, hash-verified

42 * @since 3.21.0
43 */
44 public static byte[] clear(final byte[] a) {
45 return fill(a, (byte) 0);
46 }
47
48 /**
49 * Fills and returns the given array, assigning {@code '\0'} to each element of the array.

Callers 10

testClearByteArrayMethod · 0.95
testClearCharArrayMethod · 0.95
clearMethod · 0.95
deleteImplMethod · 0.95
replaceImplMethod · 0.95
setLengthMethod · 0.95

Calls 1

fillMethod · 0.95

Tested by 6

testClearByteArrayMethod · 0.76
testClearCharArrayMethod · 0.76