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

Method recordGet

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

Source from the content-addressed store, hash-verified

90
91
92 private static <T> void recordGet(Box b, Dict.Prop<T> what, Box box, T r) {
93
94 IdempotencyMap<BiConsumer<Box, Object>> watch = what.getAttribute(Missing.watchRead);
95 if (watch != null) {
96 watch.values().forEach(x -> x.accept(box, r));
97 }
98
99 if (suspended) return;
100 synchronized (log) {
101 log.add(new Log(read, b, what, box, r));
102 trim1();
103 }
104 }
105
106 private static <T> void recordSet(Box b, Dict.Prop<T> what, Box box, T r, T previously) {
107

Callers 1

findFromMethod · 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