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

Method insert

ZezeJava/ZezeJava/src/main/java/Zeze/Transaction/TableX.java:687–692  ·  view source on GitHub ↗
(@NotNull K key, @NotNull V value)

Source from the content-addressed store, hash-verified

685 }
686
687 public final void insert(@NotNull K key, @NotNull V value) {
688 if (!tryAdd(key, value)) {
689 throw new IllegalArgumentException(String.format("table:%s insert key:%s exists",
690 getClass().getName(), key));
691 }
692 }
693
694 public final void put(@NotNull K key, @NotNull V value) {
695 var currentT = Transaction.getCurrent();

Callers

nothing calls this directly

Calls 3

tryAddMethod · 0.95
formatMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected