File tree 1 file changed +10
-12
lines changed
src/main/java/org/dataloader
1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change 22
22
* method.
23
23
* <p>
24
24
* 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
+ *
37
35
* @param <K> type parameter indicating the type of the data load keys
38
36
* @param <V> type parameter indicating the type of the data that is returned
39
37
*/
You can’t perform that action at this time.
0 commit comments