2727 *
2828 * @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
2929 */
30- public class DataLoaderOptions < K , V > {
30+ public class DataLoaderOptions {
3131
3232 private boolean batchingEnabled ;
3333 private boolean cachingEnabled ;
3434 private CacheKey cacheKeyFunction ;
35- private CacheMap < K , Future < V >> cacheMap ;
35+ private CacheMap cacheMap ;
3636
3737 /**
3838 * Creates a new data loader options with default settings.
@@ -42,16 +42,16 @@ public DataLoaderOptions() {
4242 cachingEnabled = true ;
4343 }
4444
45- public static < K , V > DataLoaderOptions < K , V > create () {
46- return new DataLoaderOptions <> ();
45+ public static DataLoaderOptions create () {
46+ return new DataLoaderOptions ();
4747 }
4848
4949 /**
5050 * Clones the provided data loader options.
5151 *
5252 * @param other the other options instance
5353 */
54- public DataLoaderOptions (DataLoaderOptions < K , V > other ) {
54+ public DataLoaderOptions (DataLoaderOptions other ) {
5555 Objects .requireNonNull (other , "Other data loader options cannot be null" );
5656 this .batchingEnabled = other .batchingEnabled ;
5757 this .cachingEnabled = other .cachingEnabled ;
@@ -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 < K , V > setBatchingEnabled (boolean batchingEnabled ) {
93+ public DataLoaderOptions 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 < K , V > setCachingEnabled (boolean cachingEnabled ) {
113+ public DataLoaderOptions 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 < K , V > setCacheKeyFunction (CacheKey cacheKeyFunction ) {
135+ public DataLoaderOptions setCacheKeyFunction (CacheKey cacheKeyFunction ) {
136136 this .cacheKeyFunction = cacheKeyFunction ;
137137 return this ;
138138 }
@@ -144,7 +144,7 @@ public DataLoaderOptions<K, V> setCacheKeyFunction(CacheKey cacheKeyFunction) {
144144 *
145145 * @return an optional with the cache map instance, or empty
146146 */
147- public Optional <CacheMap < K , Future < V >> > cacheMap () {
147+ public Optional <CacheMap > cacheMap () {
148148 return Optional .ofNullable (cacheMap );
149149 }
150150
@@ -154,7 +154,7 @@ public Optional<CacheMap<K, Future<V>>> cacheMap() {
154154 * @param cacheMap the cache map instance
155155 * @return the data loader options for fluent coding
156156 */
157- public DataLoaderOptions setCacheMap (CacheMap <K , Future <V >> cacheMap ) {
157+ public < K , V > DataLoaderOptions setCacheMap (CacheMap <K , Future <V >> cacheMap ) {
158158 this .cacheMap = cacheMap ;
159159 return this ;
160160 }
0 commit comments