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

Method put

basex-core/src/main/java/org/basex/util/hash/IntSet.java:46–49  ·  view source on GitHub ↗

Stores the specified key and returns its index. @param key key to be added @return index of stored key (larger than 0)

(final int key)

Source from the content-addressed store, hash-verified

44 * @return index of stored key (larger than {@code 0})
45 */
46 public final int put(final int key) {
47 final int i = store(key);
48 return Math.abs(i);
49 }
50
51 /**
52 * Checks if the set contains the specified key.

Callers 14

parseMethod · 0.45
parseAttsMethod · 0.45
parseHeadersMethod · 0.45
checkRequestMethod · 0.45
authHeadersMethod · 0.45
MediaTypeClass · 0.45
MediaTypeMethod · 0.45
LanguageClass · 0.45
setMethod · 0.45
languagesMethod · 0.45
readMethod · 0.45
addMethod · 0.45

Calls 2

storeMethod · 0.95
absMethod · 0.45

Tested by

no test coverage detected