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

Method remove

basex-core/src/main/java/org/basex/util/list/IntList.java:161–167  ·  view source on GitHub ↗

Removes the element at the specified position. @param index index of the element to remove @return removed element

(final int index)

Source from the content-addressed store, hash-verified

159 * @return removed element
160 */
161 public int remove(final int index) {
162 final int[] lst = list;
163 final int e = lst[index];
164 Array.remove(lst, index, 1, size);
165 --size;
166 return e;
167 }
168
169 /**
170 * Adds a difference to all elements starting from the specified index.

Callers 2

deleteMethod · 0.95
filterContentMethod · 0.95

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected