File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
src/main/java/org/dataloader Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 2222 * method.
2323 * <p>
2424 * For example the following allows you to change the returned value in some way :
25- * <pre>
26- * {@code
27- * DataLoader<String, String> rawLoader = createDataLoader();
28- * DelegatingDataLoader<String, String> delegatingDataLoader = new DelegatingDataLoader<>(rawLoader) {
29- * @Override
30- * public CompletableFuture<String> load(@NonNull String key, @Nullable Object keyContext) {
31- * CompletableFuture<String> cf = super.load(key, keyContext);
32- * return cf.thenApply(v -> "|" + v + "|");
33- * }
34- * };
35- * }
36- * </pre>
25+ * <pre>{@code
26+ * DataLoader<String, String> rawLoader = createDataLoader();
27+ * DelegatingDataLoader<String, String> delegatingDataLoader = new DelegatingDataLoader<>(rawLoader) {
28+ * public CompletableFuture<String> load(@NonNull String key, @Nullable Object keyContext) {
29+ * CompletableFuture<String> cf = super.load(key, keyContext);
30+ * return cf.thenApply(v -> "|" + v + "|");
31+ * }
32+ *};
33+ *}</pre>
34+ *
3735 * @param <K> type parameter indicating the type of the data load keys
3836 * @param <V> type parameter indicating the type of the data that is returned
3937 */
You can’t perform that action at this time.
0 commit comments