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

Method finish

basex-core/src/main/java/org/basex/util/list/ByteList.java:109–114  ·  view source on GitHub ↗

Returns an array with all elements and invalidates the internal array. Warning: the function must only be called if the list is discarded afterward. @return array (internal representation!)

()

Source from the content-addressed store, hash-verified

107 * @return array (internal representation!)
108 */
109 public byte[] finish() {
110 final byte[] lst = list;
111 list = null;
112 final int s = size;
113 return s == 0 ? EMPTY : s == lst.length ? lst : Arrays.copyOf(lst, s);
114 }
115
116 /**
117 * Reverses the order of the elements.

Callers 15

singleAppendMethod · 0.95
readBytesMethod · 0.95
contentMethod · 0.95
bytesToB64Method · 0.95
itemMethod · 0.95
toDigitsMethod · 0.95
itemMethod · 0.95
toJavaMethod · 0.95
castMethod · 0.95
xdmInfoMethod · 0.95
keyMethod · 0.95
keyMethod · 0.95

Calls 1

copyOfMethod · 0.80

Tested by 1

singleAppendMethod · 0.76