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

Method add

basex-core/src/main/java/org/basex/util/Atts.java:56–67  ·  view source on GitHub ↗

Adds the next name/value pair. @param name name to be added (can be null) @param value value to be added (can be null) @return self reference

(final byte[] name, final byte[] value)

Source from the content-addressed store, hash-verified

54 * @return self reference
55 */
56 public Atts add(final byte[] name, final byte[] value) {
57 byte[][] lst = list;
58 final int s = size;
59 if(s == lst.length) {
60 lst = Array.copyOf(lst, Array.newCapacity(s >>> 1) << 1);
61 list = lst;
62 }
63 lst[s] = name;
64 lst[s + 1] = value;
65 size = s + 2;
66 return this;
67 }
68
69 /**
70 * Adds the next name/value pair.

Callers 6

openMethod · 0.95
valuesMethod · 0.95
dirElementMethod · 0.95
nsScopeMethod · 0.95
buildMethod · 0.95
nsOKMethod · 0.95

Calls 6

copyOfMethod · 0.95
newCapacityMethod · 0.95
containsMethod · 0.95
tokenMethod · 0.65
localMethod · 0.45
concatMethod · 0.45

Tested by

no test coverage detected