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

Method incFrom

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

Adds a difference to all elements starting from the specified index. @param diff difference @param index index of the first element

(final int diff, final int index)

Source from the content-addressed store, hash-verified

172 * @param index index of the first element
173 */
174 public void incFrom(final int diff, final int index) {
175 final int[] lst = list;
176 final int s = size;
177 for(int l = index; l < s; l++) lst[l] += diff;
178 }
179
180 /**
181 * Returns the uppermost element from the stack.

Callers 2

insertMethod · 0.95
deleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected