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

Method fill

vm/JavaAPI/src/java/util/Arrays.java:780–784  ·  view source on GitHub ↗

Fills the specified array with the specified element. @param array the byte array to fill. @param value the byte element.

(byte[] array, byte value)

Source from the content-addressed store, hash-verified

778 * the {@code byte} element.
779 */
780 public static void fill(byte[] array, byte value) {
781 for (int i = 0; i < array.length; i++) {
782 array[i] = value;
783 }
784 }
785
786 /**
787 * Fills the specified range in the array with the specified element.

Callers 15

resetCacheMethod · 0.95
validateSizeMethod · 0.95
nextProbablePrimeMethod · 0.95
clearMethod · 0.95
clearMethod · 0.95
clearMethod · 0.95
growAtEndMethod · 0.95
growAtFrontMethod · 0.95
removeRangeMethod · 0.95
clearMethod · 0.95
removeRangeMethod · 0.95
setSizeMethod · 0.95

Calls 1

checkBoundsMethod · 0.95

Tested by 3

mutableMethod · 0.76
fromEncodedMethod · 0.76
scaleMethod · 0.76