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

Method add

basex-core/src/main/java/org/basex/util/hash/TokenSet.java:92–94  ·  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 byte[] key)

Source from the content-addressed store, hash-verified

90 * @return {@code true} if the key did not exist yet and was stored
91 */
92 public final boolean add(final byte[] key) {
93 return store(key) > 0;
94 }
95
96 /**
97 * Stores the specified string as key if it has not been stored before.

Callers 15

nodeMethod · 0.95
CsvConverterMethod · 0.95
enumerationTypeMethod · 0.95
uniqueMethod · 0.95
indexAccessibleMethod · 0.95
iterMethod · 0.95
toStringMethod · 0.95
itemMethod · 0.95
itemMethod · 0.95
getMethod · 0.95
unionMethod · 0.95
intersectMethod · 0.95

Calls 2

storeMethod · 0.95
tokenMethod · 0.95

Tested by

no test coverage detected