MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / recordSet

Method recordSet

src/main/java/fieldbox/boxes/plugins/Missing.java:106–118  ·  view source on GitHub ↗
(Box b, Dict.Prop<T> what, Box box, T r, T previously)

Source from the content-addressed store, hash-verified

104 }
105
106 private static <T> void recordSet(Box b, Dict.Prop<T> what, Box box, T r, T previously) {
107
108 IdempotencyMap<BiConsumer<Box, Object>> watch = what.getAttribute(Missing.watch);
109 if (watch != null) {
110 watch.values().forEach(x -> x.accept(box, previously));
111 }
112
113 if (suspended) return;
114 synchronized (log) {
115 log.add(new Log(write, b, what, box, r, previously));
116 trim1();
117 }
118 }
119
120 private static <T> void recordDelete(Box from, Dict.Prop<T> what, Box target, T val) {
121 if (suspended) return;

Callers 1

setToMethod · 0.95

Calls 5

trim1Method · 0.95
getAttributeMethod · 0.65
acceptMethod · 0.65
forEachMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected