(Box inside, String returnAddress, Function<T, String> toJson)
| 1088 | }; |
| 1089 | } |
| 1090 | |
| 1091 | protected <T> Consumer<T> newOutput(Box inside, String returnAddress, Function<T, String> toJson) { |
| 1092 | Consumer<T> c = x -> { |
| 1093 | String json = toJson.apply(x) |
| 1094 | .trim(); |
| 1095 | |
| 1096 | if (json.endsWith("}")) |
| 1097 | json = json.substring(0, json.length() - 1) + ",box:'" + inside.properties.get(IO.id) + "'}"; |
| 1098 | |
| 1099 | rater.add(new Pair<>(returnAddress, json)); |
| 1100 | }; |
| 1101 | |
| 1102 | return c; |
| 1103 | } |
| 1104 | |
| 1105 | protected Optional<Box> findBoxByID(String uid) { |
no test coverage detected