MCPcopy Create free account
hub / github.com/e2wugui/zeze / add

Method add

ZezeJava/ZezeJava/src/main/java/Zeze/Util/KVList.java:253–261  ·  view source on GitHub ↗
(K key, V value)

Source from the content-addressed store, hash-verified

251 }
252
253 public @NotNull KVList<K, V> add(K key, V value) {
254 int n = count;
255 int nNew = n + 1;
256 reserve(nNew);
257 keys[n] = key;
258 values[n] = value;
259 count = nNew;
260 return this;
261 }
262
263 public @NotNull KVList<K, V> addAll(K @NotNull [] keys, V @NotNull [] values, int fromIdx, int count) {
264 if (count <= 0)

Callers 1

insertMethod · 0.95

Calls 1

reserveMethod · 0.95

Tested by

no test coverage detected