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

Method fill

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

Fills and returns the given array, assigning the given boolean value to each element of the array. @param a the array to fill (may be null). @param val the value to store in all elements of the array. @return the given array. @see Arrays#fill(boolean[],boolean) @since 3.18.0

(final boolean[] a, final boolean val)

Source from the content-addressed store, hash-verified

95 * @since 3.18.0
96 */
97 public static boolean[] fill(final boolean[] a, final boolean val) {
98 if (a != null) {
99 Arrays.fill(a, val);
100 }
101 return a;
102 }
103
104 /**
105 * Fills and returns the given array, assigning the given {@code byte} value to each element of the array.

Callers 15

testToCodePointsEmojiMethod · 0.95
testFillBooleanArrayMethod · 0.95
testFillByteArrayMethod · 0.95
testFillByteArrayNullMethod · 0.95
testFillCharArrayMethod · 0.95
testFillCharArrayNullMethod · 0.95
testFillDoubleArrayMethod · 0.95

Calls 1

applyMethod · 0.65

Tested by 15

testToCodePointsEmojiMethod · 0.76
testFillBooleanArrayMethod · 0.76
testFillByteArrayMethod · 0.76
testFillByteArrayNullMethod · 0.76
testFillCharArrayMethod · 0.76
testFillCharArrayNullMethod · 0.76
testFillDoubleArrayMethod · 0.76