MCPcopy Create free account
hub / github.com/ReadyTalk/avian / copyOf

Method copyOf

classpath/java/util/Arrays.java:617–622  ·  view source on GitHub ↗
(boolean[] array, int newLength)

Source from the content-addressed store, hash-verified

615 }
616
617 public static boolean[] copyOf(boolean[] array, int newLength) {
618 boolean[] result = new boolean[newLength];
619 int length = array.length > newLength ? newLength : array.length;
620 System.arraycopy(array, 0, result, 0, length);
621 return result;
622 }
623
624 public static byte[] copyOf(byte[] array, int newLength) {
625 byte[] result = new byte[newLength];

Callers 5

mainMethod · 0.95
queueImmediatelyMethod · 0.45
ensureCapacityMethod · 0.45
mergeMethod · 0.45
intersectMethod · 0.45

Calls 4

arraycopyMethod · 0.95
newInstanceMethod · 0.95
getComponentTypeMethod · 0.80
getClassMethod · 0.45

Tested by 1

mainMethod · 0.76