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

Method add

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

Stores the specified key if it has not been stored before. @param key key to be added @return true if the key did not exist yet and was stored

(final int key)

Source from the content-addressed store, hash-verified

35 * @return {@code true} if the key did not exist yet and was stored
36 */
37 public final boolean add(final int key) {
38 return store(key) > 0;
39 }
40
41 /**
42 * Stores the specified key and returns its index.

Callers 10

valueMethod · 0.95
valueMethod · 0.95
iterMethod · 0.95
simplifyForMethod · 0.95
checkNamesMethod · 0.95
adjustDistancesMethod · 0.95
unionMethod · 0.95
addMethod · 0.95
DecFormatterMethod · 0.95
isMonoMethod · 0.95

Calls 1

storeMethod · 0.95

Tested by

no test coverage detected