(Box from, Dict.Prop<IdempotencyMap<Box.FunctionOfBox>> prop)
| 64 | .autoConstructs(() -> new IdempotencyMap<>(Box.FunctionOfBox.class)).set(Dict |
| 65 | .readOnly, true); |
| 66 | |
| 67 | |
| 68 | static public void call(Box from, Dict.Prop<IdempotencyMap<Box.FunctionOfBox>> prop) { |
| 69 | Set<String> seen = new LinkedHashSet<>(); |
| 70 | from.breadthFirst(from.upwards()) |
| 71 | .map(x -> x.properties.get(prop)) |
| 72 | .filter(x -> x != null) |
| 73 | .flatMap(x -> x.entrySet() |
| 74 | .stream()) |
| 75 | .forEach(x -> { |
| 76 | if (seen.add(x.getKey())) |
| 77 | x.getValue().apply(from); |
| 78 | }); |
| 79 | } |
| 80 |
no test coverage detected