Class LookupServiceTransformValue<K,W,V>
java.lang.Object
org.aksw.commons.rx.lookup.LookupServiceTransformValue<K,W,V>
- All Implemented Interfaces:
Function<Iterable<K>, io.reactivex.rxjava3.core.Flowable<Map.Entry<K,W>>>, LookupService<K, W>
-
Constructor Summary
ConstructorsConstructorDescriptionLookupServiceTransformValue(LookupService<K, V> base, BiFunction<? super K, ? super V, W> fn) -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,W, V> LookupServiceTransformValue <K, W, V> create(LookupService<K, V> base, BiFunction<? super K, ? super V, W> fn) create method that only passes the original value to the mapping functionstatic <K,W, V> LookupServiceTransformValue <K, W, V> create(LookupService<K, V> base, Function<? super V, W> fn) create method tha passes both key and value of each entry to the mapping functionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LookupService
cache, cache, defaultForAbsentKeys, fetchItem, fetchList, fetchMap, fetchMap, filterKeys, mapKeys, mapNonNullValues, mapNonNullValues, mapValues, mapValues, partition, requestList, requestMap
-
Constructor Details
-
LookupServiceTransformValue
-
-
Method Details
-
apply
-
create
public static <K,W, LookupServiceTransformValue<K,V> W, createV> (LookupService<K, V> base, BiFunction<? super K, ? super V, W> fn) create method that only passes the original value to the mapping function- Parameters:
base-fn-- Returns:
-
create
public static <K,W, LookupServiceTransformValue<K,V> W, createV> (LookupService<K, V> base, Function<? super V, W> fn) create method tha passes both key and value of each entry to the mapping function- Parameters:
base-fn-- Returns:
-