Skip to content

Commit a644de6

Browse files
committed
Improved generics of dataloader options
1 parent 13e0253 commit a644de6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/io/engagingspaces/vertx/dataloader/DataLoaderOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public boolean batchingEnabled() {
9090
* @param batchingEnabled {@code true} to enable batch loading, {@code false} otherwise
9191
* @return the data loader options for fluent coding
9292
*/
93-
public DataLoaderOptions setBatchingEnabled(boolean batchingEnabled) {
93+
public DataLoaderOptions<K, V> setBatchingEnabled(boolean batchingEnabled) {
9494
this.batchingEnabled = batchingEnabled;
9595
return this;
9696
}
@@ -110,7 +110,7 @@ public boolean cachingEnabled() {
110110
* @param cachingEnabled {@code true} to enable caching, {@code false} otherwise
111111
* @return the data loader options for fluent coding
112112
*/
113-
public DataLoaderOptions setCachingEnabled(boolean cachingEnabled) {
113+
public DataLoaderOptions<K, V> setCachingEnabled(boolean cachingEnabled) {
114114
this.cachingEnabled = cachingEnabled;
115115
return this;
116116
}
@@ -132,7 +132,7 @@ public Optional<CacheKey> cacheKeyFunction() {
132132
* @param cacheKeyFunction the cache key function to use
133133
* @return the data loader options for fluent coding
134134
*/
135-
public DataLoaderOptions setCacheKeyFunction(CacheKey cacheKeyFunction) {
135+
public DataLoaderOptions<K, V> setCacheKeyFunction(CacheKey cacheKeyFunction) {
136136
this.cacheKeyFunction = cacheKeyFunction;
137137
return this;
138138
}

0 commit comments

Comments
 (0)