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

Method add

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

Adds an entry to the end of an array and returns the new array. @param array array to be resized @param entry entry to be added @param array type @return array

(final T[] array, final T entry)

Source from the content-addressed store, hash-verified

67 * @return array
68 */
69 public static <T> T[] add(final T[] array, final T entry) {
70 final int s = array.length;
71 final T[] t = Arrays.copyOf(array, s + 1);
72 t[s] = entry;
73 return t;
74 }
75
76 /**
77 * Adds an entry to the end of an array and returns the new array.

Callers 13

flworMethod · 0.95
groupSpecsMethod · 0.95
typeswitchMethod · 0.95
functionTestMethod · 0.95
tryCatchMethod · 0.95
ftOrMethod · 0.95
ftAndMethod · 0.95
ftMildNotMethod · 0.95
copyModifyMethod · 0.95
cleanMethod · 0.95
putMethod · 0.95
addMethod · 0.95

Calls 1

copyOfMethod · 0.80

Tested by

no test coverage detected