public final class CaffeineMemoize extends Object
Factory for lightweight wrappers that store the result of a potentially expensive function call. Each method of this class exposes two of the following features:
Default cache
The memoizer uses the default cache of this factory. Current implementation creates a new Cache
per memoizer.
The memoizer uses the default BiFunction
or Supplier
to calculate the cache key for each call. Either
uses the natural key (e.g. the input itself) or one of the methods in MemoizationDefaults
.
The memoizer uses a user-provided Cache
as its cache. It is possible to add values to the cache both before
and after the memoizer was created.
The memoizer uses a user-defined BiFunction
or Supplier
to calculate the cache key for each call.
Take a look at MemoizationDefaults
for a possible key functions and suppliers.
BiConsumer
,
BiFunction
,
BiPredicate
,
BooleanSupplier
,
Consumer
,
DoubleBinaryOperator
,
DoubleConsumer
,
DoubleFunction
,
DoublePredicate
,
DoubleSupplier
,
DoubleToIntFunction
,
DoubleToLongFunction
,
DoubleUnaryOperator
,
Function
,
IntBinaryOperator
,
IntConsumer
,
IntFunction
,
IntPredicate
,
IntSupplier
,
IntToDoubleFunction
,
IntToLongFunction
,
IntUnaryOperator
,
LongBinaryOperator
,
LongConsumer
,
LongFunction
,
LongPredicate
,
LongSupplier
,
LongToDoubleFunction
,
LongToIntFunction
,
LongUnaryOperator
,
ObjDoubleConsumer
,
ObjIntConsumer
,
ObjLongConsumer
,
Predicate
,
Supplier
,
ToDoubleBiFunction
,
ToDoubleFunction
,
ToIntBiFunction
,
ToIntFunction
,
ToLongBiFunction
,
ToLongFunction
,
Wikipedia: MemoizationModifier and Type | Method and Description |
---|---|
static <FIRST,SECOND> |
biConsumer(BiConsumer<FIRST,SECOND> biConsumer)
Memoizes a
BiConsumer in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
biConsumer(BiConsumer<FIRST,SECOND> biConsumer,
BiFunction<FIRST,SECOND,KEY> keyFunction)
Memoizes a
BiConsumer in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
biConsumer(BiConsumer<FIRST,SECOND> biConsumer,
BiFunction<FIRST,SECOND,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,KEY> cache)
Memoizes a
BiConsumer in a Caffeine Cache . |
static <FIRST,SECOND> |
biConsumer(BiConsumer<FIRST,SECOND> biConsumer,
com.github.benmanes.caffeine.cache.Cache<String,String> cache)
Memoizes a
BiConsumer in a Caffeine Cache . |
static <FIRST,SECOND,OUTPUT> |
biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction)
Memoizes a
BiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY,OUTPUT> |
biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction,
BiFunction<FIRST,SECOND,KEY> keyFunction)
Memoizes a
BiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY,OUTPUT> |
biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction,
BiFunction<FIRST,SECOND,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
Memoizes a
BiFunction in a Caffeine Cache . |
static <FIRST,SECOND,OUTPUT> |
biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction,
com.github.benmanes.caffeine.cache.Cache<String,OUTPUT> cache)
Memoizes a
BiFunction in a Caffeine Cache . |
static <FIRST,SECOND> |
biPredicate(BiPredicate<FIRST,SECOND> predicate)
Memoizes a
BiPredicate in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
biPredicate(BiPredicate<FIRST,SECOND> predicate,
BiFunction<FIRST,SECOND,KEY> keyFunction)
Memoizes a
BiPredicate in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
biPredicate(BiPredicate<FIRST,SECOND> predicate,
BiFunction<FIRST,SECOND,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
Memoizes a
BiPredicate in a Caffeine Cache . |
static <FIRST,SECOND> |
biPredicate(BiPredicate<FIRST,SECOND> predicate,
com.github.benmanes.caffeine.cache.Cache<String,Boolean> cache)
Memoizes a
BiPredicate in a Caffeine Cache . |
static BooleanSupplier |
booleanSupplier(BooleanSupplier supplier)
Memoizes a
BooleanSupplier in a Caffeine Cache . |
static BooleanSupplier |
booleanSupplier(BooleanSupplier supplier,
com.github.benmanes.caffeine.cache.Cache<String,Boolean> cache)
Memoizes a
BooleanSupplier in a Caffeine Cache . |
static <KEY> BooleanSupplier |
booleanSupplier(BooleanSupplier supplier,
Supplier<KEY> keySupplier)
Memoizes a
BooleanSupplier in a Caffeine Cache . |
static <KEY> BooleanSupplier |
booleanSupplier(BooleanSupplier supplier,
Supplier<KEY> keySupplier,
com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
Memoizes a
BooleanSupplier in a Caffeine Cache . |
static <INPUT> Consumer<INPUT> |
consumer(Consumer<INPUT> consumer)
Memoizes a
Consumer in a Caffeine Cache . |
static <INPUT> Consumer<INPUT> |
consumer(Consumer<INPUT> consumer,
com.github.benmanes.caffeine.cache.Cache<INPUT,INPUT> cache)
Memoizes a
Consumer in a Caffeine Cache . |
static <INPUT,KEY> |
consumer(Consumer<INPUT> consumer,
Function<INPUT,KEY> keyFunction)
Memoizes a
Consumer in a Caffeine Cache . |
static <INPUT,KEY> |
consumer(Consumer<INPUT> consumer,
Function<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
Memoizes a
Consumer in a Caffeine Cache . |
static DoubleBinaryOperator |
doubleBinaryOperator(DoubleBinaryOperator operator)
Memoizes a
DoubleBinaryOperator in a Caffeine Cache . |
static DoubleBinaryOperator |
doubleBinaryOperator(DoubleBinaryOperator operator,
com.github.benmanes.caffeine.cache.Cache<String,Double> cache)
Memoizes a
DoubleBinaryOperator in a Caffeine Cache . |
static <KEY> DoubleBinaryOperator |
doubleBinaryOperator(DoubleBinaryOperator operator,
DoubleBinaryFunction<KEY> keyFunction)
Memoizes a
DoubleBinaryOperator in a Caffeine Cache . |
static <KEY> DoubleBinaryOperator |
doubleBinaryOperator(DoubleBinaryOperator operator,
DoubleBinaryFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
DoubleBinaryOperator in a Caffeine Cache . |
static DoubleConsumer |
doubleConsumer(DoubleConsumer consumer)
Memoizes a
DoubleConsumer in a Caffeine Cache . |
static DoubleConsumer |
doubleConsumer(DoubleConsumer consumer,
com.github.benmanes.caffeine.cache.Cache<Double,Double> cache)
Memoizes a
DoubleConsumer in a Caffeine Cache . |
static <KEY> DoubleConsumer |
doubleConsumer(DoubleConsumer consumer,
DoubleFunction<KEY> keyFunction)
Memoizes a
DoubleConsumer in a Caffeine Cache . |
static <KEY> DoubleConsumer |
doubleConsumer(DoubleConsumer consumer,
DoubleFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
DoubleConsumer in a Caffeine Cache . |
static <OUTPUT> DoubleFunction<OUTPUT> |
doubleFunction(DoubleFunction<OUTPUT> function)
Memoizes a
DoubleFunction in a Caffeine Cache . |
static <OUTPUT> DoubleFunction<OUTPUT> |
doubleFunction(DoubleFunction<OUTPUT> function,
com.github.benmanes.caffeine.cache.Cache<Double,OUTPUT> cache)
Memoizes a
DoubleFunction in a Caffeine Cache . |
static <KEY,OUTPUT> |
doubleFunction(DoubleFunction<OUTPUT> function,
DoubleFunction<KEY> keyFunction)
Memoizes a
DoubleFunction in a Caffeine Cache . |
static <KEY,OUTPUT> |
doubleFunction(DoubleFunction<OUTPUT> function,
DoubleFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
Memoizes a
DoubleFunction in a Caffeine Cache . |
static DoublePredicate |
doublePredicate(DoublePredicate predicate)
Memoizes a
DoublePredicate in a Caffeine Cache . |
static DoublePredicate |
doublePredicate(DoublePredicate predicate,
com.github.benmanes.caffeine.cache.Cache<Double,Boolean> cache)
Memoizes a
DoublePredicate in a Caffeine Cache . |
static <KEY> DoublePredicate |
doublePredicate(DoublePredicate predicate,
DoubleFunction<KEY> keyFunction)
Memoizes a
DoublePredicate in a Caffeine Cache . |
static <KEY> DoublePredicate |
doublePredicate(DoublePredicate predicate,
DoubleFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
Memoizes a
DoublePredicate in a Caffeine Cache . |
static DoubleSupplier |
doubleSupplier(DoubleSupplier supplier)
Memoizes a
DoubleSupplier in a Caffeine Cache . |
static DoubleSupplier |
doubleSupplier(DoubleSupplier supplier,
com.github.benmanes.caffeine.cache.Cache<String,Double> cache)
Memoizes a
DoubleSupplier in a Caffeine Cache . |
static <KEY> DoubleSupplier |
doubleSupplier(DoubleSupplier supplier,
Supplier<KEY> keySupplier)
Memoizes a
DoubleSupplier in a Caffeine Cache . |
static <KEY> DoubleSupplier |
doubleSupplier(DoubleSupplier supplier,
Supplier<KEY> keySupplier,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
DoubleSupplier in a Caffeine Cache . |
static DoubleToIntFunction |
doubleToIntFunction(DoubleToIntFunction function)
Memoizes a
DoubleToIntFunction in a Caffeine Cache . |
static DoubleToIntFunction |
doubleToIntFunction(DoubleToIntFunction function,
com.github.benmanes.caffeine.cache.Cache<Double,Integer> cache)
Memoizes a
DoubleToIntFunction in a Caffeine Cache . |
static <KEY> DoubleToIntFunction |
doubleToIntFunction(DoubleToIntFunction function,
DoubleFunction<KEY> keyFunction)
Memoizes a
DoubleToIntFunction in a Caffeine Cache . |
static <KEY> DoubleToIntFunction |
doubleToIntFunction(DoubleToIntFunction function,
DoubleFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
DoubleToIntFunction in a Caffeine Cache . |
static DoubleToLongFunction |
doubleToLongFunction(DoubleToLongFunction function)
Memoizes a
DoubleToLongFunction in a Caffeine Cache . |
static DoubleToLongFunction |
doubleToLongFunction(DoubleToLongFunction function,
com.github.benmanes.caffeine.cache.Cache<Double,Long> cache)
Memoizes a
DoubleToLongFunction in a Caffeine Cache . |
static <KEY> DoubleToLongFunction |
doubleToLongFunction(DoubleToLongFunction function,
DoubleFunction<KEY> keyFunction)
Memoizes a
DoubleToLongFunction in a Caffeine Cache . |
static <KEY> DoubleToLongFunction |
doubleToLongFunction(DoubleToLongFunction function,
DoubleFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
DoubleToLongFunction in a Caffeine Cache . |
static DoubleUnaryOperator |
doubleUnaryOperator(DoubleUnaryOperator operator)
Memoizes a
DoubleUnaryOperator in a Caffeine Cache . |
static DoubleUnaryOperator |
doubleUnaryOperator(DoubleUnaryOperator operator,
com.github.benmanes.caffeine.cache.Cache<Double,Double> cache)
Memoizes a
DoubleUnaryOperator in a Caffeine Cache . |
static <KEY> DoubleUnaryOperator |
doubleUnaryOperator(DoubleUnaryOperator operator,
DoubleFunction<KEY> keyFunction)
Memoizes a
DoubleUnaryOperator in a Caffeine Cache . |
static <KEY> DoubleUnaryOperator |
doubleUnaryOperator(DoubleUnaryOperator operator,
DoubleFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
DoubleUnaryOperator in a Caffeine Cache . |
static <INPUT,OUTPUT> |
function(Function<INPUT,OUTPUT> function)
Memoizes a
Function in a Caffeine Cache . |
static <INPUT,OUTPUT> |
function(Function<INPUT,OUTPUT> function,
com.github.benmanes.caffeine.cache.Cache<INPUT,OUTPUT> cache)
Memoizes a
Function in a Caffeine Cache . |
static <INPUT,KEY,OUTPUT> |
function(Function<INPUT,OUTPUT> function,
Function<INPUT,KEY> keyFunction)
Memoizes a
Function in a Caffeine Cache . |
static <INPUT,KEY,OUTPUT> |
function(Function<INPUT,OUTPUT> function,
Function<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
Memoizes a
Function in a Caffeine Cache . |
static IntBinaryOperator |
intBinaryOperator(IntBinaryOperator operator)
Memoizes a
IntBinaryOperator in a Caffeine Cache . |
static IntBinaryOperator |
intBinaryOperator(IntBinaryOperator operator,
com.github.benmanes.caffeine.cache.Cache<String,Integer> cache)
Memoizes a
IntBinaryOperator in a Caffeine Cache . |
static <KEY> IntBinaryOperator |
intBinaryOperator(IntBinaryOperator operator,
IntBinaryFunction<KEY> keyFunction)
Memoizes a
IntBinaryOperator in a Caffeine Cache . |
static <KEY> IntBinaryOperator |
intBinaryOperator(IntBinaryOperator operator,
IntBinaryFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
IntBinaryOperator in a Caffeine Cache . |
static IntConsumer |
intConsumer(IntConsumer consumer)
Memoizes a
IntConsumer in a Caffeine Cache . |
static IntConsumer |
intConsumer(IntConsumer consumer,
com.github.benmanes.caffeine.cache.Cache<Integer,Integer> cache)
Memoizes a
IntConsumer in a Caffeine Cache . |
static <KEY> IntConsumer |
intConsumer(IntConsumer consumer,
IntFunction<KEY> keyFunction)
Memoizes a
IntConsumer in a Caffeine Cache . |
static <KEY> IntConsumer |
intConsumer(IntConsumer consumer,
IntFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
IntConsumer in a Caffeine Cache . |
static <OUTPUT> IntFunction<OUTPUT> |
intFunction(IntFunction<OUTPUT> function)
Memoizes a
IntFunction in a Caffeine Cache . |
static <OUTPUT> IntFunction<OUTPUT> |
intFunction(IntFunction<OUTPUT> function,
com.github.benmanes.caffeine.cache.Cache<Integer,OUTPUT> cache)
Memoizes a
IntFunction in a Caffeine Cache . |
static <KEY,OUTPUT> |
intFunction(IntFunction<OUTPUT> function,
IntFunction<KEY> keyFunction)
Memoizes a
IntFunction in a Caffeine Cache . |
static <KEY,OUTPUT> |
intFunction(IntFunction<OUTPUT> function,
IntFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
Memoizes a
IntFunction in a Caffeine Cache . |
static IntPredicate |
intPredicate(IntPredicate predicate)
Memoizes a
IntPredicate in a Caffeine Cache . |
static IntPredicate |
intPredicate(IntPredicate predicate,
com.github.benmanes.caffeine.cache.Cache<Integer,Boolean> cache)
Memoizes a
IntPredicate in a Caffeine Cache . |
static <KEY> IntPredicate |
intPredicate(IntPredicate predicate,
IntFunction<KEY> keyFunction)
Memoizes a
IntPredicate in a Caffeine Cache . |
static <KEY> IntPredicate |
intPredicate(IntPredicate predicate,
IntFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
Memoizes a
IntPredicate in a Caffeine Cache . |
static IntSupplier |
intSupplier(IntSupplier supplier)
Memoizes a
IntSupplier in a Caffeine Cache . |
static IntSupplier |
intSupplier(IntSupplier supplier,
com.github.benmanes.caffeine.cache.Cache<String,Integer> cache)
Memoizes a
IntSupplier in a Caffeine Cache . |
static <KEY> IntSupplier |
intSupplier(IntSupplier supplier,
Supplier<KEY> keySupplier)
Memoizes a
IntSupplier in a Caffeine Cache . |
static <KEY> IntSupplier |
intSupplier(IntSupplier supplier,
Supplier<KEY> keySupplier,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
IntSupplier in a Caffeine Cache . |
static IntToDoubleFunction |
intToDoubleFunction(IntToDoubleFunction function)
Memoizes a
IntToDoubleFunction in a Caffeine Cache . |
static IntToDoubleFunction |
intToDoubleFunction(IntToDoubleFunction function,
com.github.benmanes.caffeine.cache.Cache<Integer,Double> cache)
Memoizes a
IntToDoubleFunction in a Caffeine Cache . |
static <KEY> IntToDoubleFunction |
intToDoubleFunction(IntToDoubleFunction function,
IntFunction<KEY> keyFunction)
Memoizes a
IntToDoubleFunction in a Caffeine Cache . |
static <KEY> IntToDoubleFunction |
intToDoubleFunction(IntToDoubleFunction function,
IntFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
IntToDoubleFunction in a Caffeine Cache . |
static IntToLongFunction |
intToLongFunction(IntToLongFunction function)
Memoizes a
IntToLongFunction in a Caffeine Cache . |
static IntToLongFunction |
intToLongFunction(IntToLongFunction function,
com.github.benmanes.caffeine.cache.Cache<Integer,Long> cache)
Memoizes a
IntToLongFunction in a Caffeine Cache . |
static <KEY> IntToLongFunction |
intToLongFunction(IntToLongFunction function,
IntFunction<KEY> keyFunction)
Memoizes a
IntToLongFunction in a Caffeine Cache . |
static <KEY> IntToLongFunction |
intToLongFunction(IntToLongFunction function,
IntFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
IntToLongFunction in a Caffeine Cache . |
static IntUnaryOperator |
intUnaryOperator(IntUnaryOperator operator)
Memoizes a
IntUnaryOperator in a Caffeine Cache . |
static IntUnaryOperator |
intUnaryOperator(IntUnaryOperator operator,
com.github.benmanes.caffeine.cache.Cache<Integer,Integer> cache)
Memoizes a
IntUnaryOperator in a Caffeine Cache . |
static <KEY> IntUnaryOperator |
intUnaryOperator(IntUnaryOperator operator,
IntFunction<KEY> keyFunction)
Memoizes a
IntUnaryOperator in a Caffeine Cache . |
static <KEY> IntUnaryOperator |
intUnaryOperator(IntUnaryOperator operator,
IntFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
IntUnaryOperator in a Caffeine Cache . |
static LongBinaryOperator |
longBinaryOperator(LongBinaryOperator operator)
Memoizes a
LongBinaryOperator in a Caffeine Cache . |
static LongBinaryOperator |
longBinaryOperator(LongBinaryOperator operator,
com.github.benmanes.caffeine.cache.Cache<String,Long> cache)
Memoizes a
LongBinaryOperator in a Caffeine Cache . |
static <KEY> LongBinaryOperator |
longBinaryOperator(LongBinaryOperator operator,
LongBinaryFunction<KEY> keyFunction)
Memoizes a
LongBinaryOperator in a Caffeine Cache . |
static <KEY> LongBinaryOperator |
longBinaryOperator(LongBinaryOperator operator,
LongBinaryFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
LongBinaryOperator in a Caffeine Cache . |
static LongConsumer |
longConsumer(LongConsumer consumer)
Memoizes a
LongConsumer in a Caffeine Cache . |
static LongConsumer |
longConsumer(LongConsumer consumer,
com.github.benmanes.caffeine.cache.Cache<Long,Long> cache)
Memoizes a
LongConsumer in a Caffeine Cache . |
static <KEY> LongConsumer |
longConsumer(LongConsumer consumer,
LongFunction<KEY> keyFunction)
Memoizes a
LongConsumer in a Caffeine Cache . |
static <KEY> LongConsumer |
longConsumer(LongConsumer consumer,
LongFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
LongConsumer in a Caffeine Cache . |
static <OUTPUT> LongFunction<OUTPUT> |
longFunction(LongFunction<OUTPUT> function)
Memoizes a
LongFunction in a Caffeine Cache . |
static <OUTPUT> LongFunction<OUTPUT> |
longFunction(LongFunction<OUTPUT> function,
com.github.benmanes.caffeine.cache.Cache<Long,OUTPUT> cache)
Memoizes a
LongFunction in a Caffeine Cache . |
static <KEY,OUTPUT> |
longFunction(LongFunction<OUTPUT> function,
LongFunction<KEY> keyFunction)
Memoizes a
LongFunction in a Caffeine Cache . |
static <KEY,OUTPUT> |
longFunction(LongFunction<OUTPUT> function,
LongFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
Memoizes a
LongFunction in a Caffeine Cache . |
static LongPredicate |
longPredicate(LongPredicate predicate)
Memoizes a
LongPredicate in a Caffeine Cache . |
static LongPredicate |
longPredicate(LongPredicate predicate,
com.github.benmanes.caffeine.cache.Cache<Long,Boolean> cache)
Memoizes a
LongPredicate in a Caffeine Cache . |
static <KEY> LongPredicate |
longPredicate(LongPredicate predicate,
LongFunction<KEY> keyFunction)
Memoizes a
LongPredicate in a Caffeine Cache . |
static <KEY> LongPredicate |
longPredicate(LongPredicate predicate,
LongFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
Memoizes a
LongPredicate in a Caffeine Cache . |
static LongSupplier |
longSupplier(LongSupplier supplier)
Memoizes a
LongSupplier in a Caffeine Cache . |
static LongSupplier |
longSupplier(LongSupplier supplier,
com.github.benmanes.caffeine.cache.Cache<String,Long> cache)
Memoizes a
LongSupplier in a Caffeine Cache . |
static <KEY> LongSupplier |
longSupplier(LongSupplier supplier,
Supplier<KEY> keySupplier)
Memoizes a
LongSupplier in a Caffeine Cache . |
static <KEY> LongSupplier |
longSupplier(LongSupplier supplier,
Supplier<KEY> keySupplier,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
LongSupplier in a Caffeine Cache . |
static LongToDoubleFunction |
longToDoubleFunction(LongToDoubleFunction function)
Memoizes a
LongToDoubleFunction in a Caffeine Cache . |
static LongToDoubleFunction |
longToDoubleFunction(LongToDoubleFunction function,
com.github.benmanes.caffeine.cache.Cache<Long,Double> cache)
Memoizes a
LongToDoubleFunction in a Caffeine Cache . |
static <KEY> LongToDoubleFunction |
longToDoubleFunction(LongToDoubleFunction function,
LongFunction<KEY> keyFunction)
Memoizes a
LongToDoubleFunction in a Caffeine Cache . |
static <KEY> LongToDoubleFunction |
longToDoubleFunction(LongToDoubleFunction function,
LongFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
LongToDoubleFunction in a Caffeine Cache . |
static LongToIntFunction |
longToIntFunction(LongToIntFunction function)
Memoizes a
LongToIntFunction in a Caffeine Cache . |
static LongToIntFunction |
longToIntFunction(LongToIntFunction function,
com.github.benmanes.caffeine.cache.Cache<Long,Integer> cache)
Memoizes a
LongToIntFunction in a Caffeine Cache . |
static <KEY> LongToIntFunction |
longToIntFunction(LongToIntFunction function,
LongFunction<KEY> keyFunction)
Memoizes a
LongToIntFunction in a Caffeine Cache . |
static <KEY> LongToIntFunction |
longToIntFunction(LongToIntFunction function,
LongFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
LongToIntFunction in a Caffeine Cache . |
static LongUnaryOperator |
longUnaryOperator(LongUnaryOperator operator)
Memoizes a
LongUnaryOperator in a Caffeine Cache . |
static LongUnaryOperator |
longUnaryOperator(LongUnaryOperator operator,
com.github.benmanes.caffeine.cache.Cache<Long,Long> cache)
Memoizes a
LongUnaryOperator in a Caffeine Cache . |
static <KEY> LongUnaryOperator |
longUnaryOperator(LongUnaryOperator operator,
LongFunction<KEY> keyFunction)
Memoizes a
LongUnaryOperator in a Caffeine Cache . |
static <KEY> LongUnaryOperator |
longUnaryOperator(LongUnaryOperator operator,
LongFunction<KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
LongUnaryOperator in a Caffeine Cache . |
static <INPUT> ObjDoubleConsumer<INPUT> |
objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer)
Memoizes a
ObjDoubleConsumer in a Caffeine Cache . |
static <INPUT> ObjDoubleConsumer<INPUT> |
objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer,
com.github.benmanes.caffeine.cache.Cache<String,INPUT> cache)
Memoizes a
ObjDoubleConsumer in a Caffeine Cache . |
static <INPUT,KEY> |
objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer,
ObjDoubleFunction<INPUT,KEY> keyFunction)
Memoizes a
ObjDoubleConsumer in a Caffeine Cache . |
static <INPUT,KEY> |
objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer,
ObjDoubleFunction<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
Memoizes a
ObjDoubleConsumer in a Caffeine Cache . |
static <INPUT> ObjIntConsumer<INPUT> |
objIntConsumer(ObjIntConsumer<INPUT> consumer)
Memoizes a
ObjIntConsumer in a Caffeine Cache . |
static <INPUT> ObjIntConsumer<INPUT> |
objIntConsumer(ObjIntConsumer<INPUT> consumer,
com.github.benmanes.caffeine.cache.Cache<String,INPUT> cache)
Memoizes a
ObjIntConsumer in a Caffeine Cache . |
static <INPUT,KEY> |
objIntConsumer(ObjIntConsumer<INPUT> consumer,
ObjIntFunction<INPUT,KEY> keyFunction)
Memoizes a
ObjIntConsumer in a Caffeine Cache . |
static <INPUT,KEY> |
objIntConsumer(ObjIntConsumer<INPUT> consumer,
ObjIntFunction<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
Memoizes a
ObjIntConsumer in a Caffeine Cache . |
static <INPUT> ObjLongConsumer<INPUT> |
objLongConsumer(ObjLongConsumer<INPUT> consumer)
Memoizes a
ObjLongConsumer in a Caffeine Cache . |
static <INPUT> ObjLongConsumer<INPUT> |
objLongConsumer(ObjLongConsumer<INPUT> consumer,
com.github.benmanes.caffeine.cache.Cache<String,INPUT> cache)
Memoizes a
ObjLongConsumer in a Caffeine Cache . |
static <INPUT,KEY> |
objLongConsumer(ObjLongConsumer<INPUT> consumer,
ObjLongFunction<INPUT,KEY> keyFunction)
Memoizes a
ObjLongConsumer in a Caffeine Cache . |
static <INPUT,KEY> |
objLongConsumer(ObjLongConsumer<INPUT> consumer,
ObjLongFunction<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
Memoizes a
ObjLongConsumer in a Caffeine Cache . |
static <INPUT> Predicate<INPUT> |
predicate(Predicate<INPUT> predicate)
Memoizes a
Predicate in a Caffeine Cache . |
static <INPUT> Predicate<INPUT> |
predicate(Predicate<INPUT> predicate,
com.github.benmanes.caffeine.cache.Cache<INPUT,Boolean> cache)
Memoizes a
Predicate in a Caffeine Cache . |
static <INPUT,KEY> |
predicate(Predicate<INPUT> predicate,
Function<INPUT,KEY> keyFunction)
Memoizes a
Predicate in a Caffeine Cache . |
static <INPUT,KEY> |
predicate(Predicate<INPUT> predicate,
Function<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
Memoizes a
Predicate in a Caffeine Cache . |
static <OUTPUT> Supplier<OUTPUT> |
supplier(Supplier<OUTPUT> supplier)
Memoizes a
Supplier in a Caffeine Cache . |
static <OUTPUT> Supplier<OUTPUT> |
supplier(Supplier<OUTPUT> supplier,
com.github.benmanes.caffeine.cache.Cache<String,OUTPUT> cache)
Memoizes a
Supplier in a Caffeine Cache . |
static <KEY,OUTPUT> |
supplier(Supplier<OUTPUT> supplier,
Supplier<KEY> keySupplier)
Memoizes a
Supplier in a Caffeine Cache . |
static <KEY,OUTPUT> |
supplier(Supplier<OUTPUT> supplier,
Supplier<KEY> keySupplier,
com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
Memoizes a
Supplier in a Caffeine Cache . |
static <FIRST,SECOND> |
toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function)
Memoizes a
ToDoubleBiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function,
BiFunction<FIRST,SECOND,KEY> keyFunction)
Memoizes a
ToDoubleBiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function,
BiFunction<FIRST,SECOND,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
ToDoubleBiFunction in a Caffeine Cache . |
static <FIRST,SECOND> |
toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function,
com.github.benmanes.caffeine.cache.Cache<String,Double> cache)
Memoizes a
ToDoubleBiFunction in a Caffeine Cache . |
static <INPUT> ToDoubleFunction<INPUT> |
toDoubleFunction(ToDoubleFunction<INPUT> function)
Memoizes a
ToDoubleFunction in a Caffeine Cache . |
static <INPUT> ToDoubleFunction<INPUT> |
toDoubleFunction(ToDoubleFunction<INPUT> function,
com.github.benmanes.caffeine.cache.Cache<INPUT,Double> cache)
Memoizes a
ToDoubleFunction in a Caffeine Cache . |
static <INPUT,KEY> |
toDoubleFunction(ToDoubleFunction<INPUT> function,
Function<INPUT,KEY> keyFunction)
Memoizes a
ToDoubleFunction in a Caffeine Cache . |
static <INPUT,KEY> |
toDoubleFunction(ToDoubleFunction<INPUT> function,
Function<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
Memoizes a
ToDoubleFunction in a Caffeine Cache . |
static <FIRST,SECOND> |
toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function)
Memoizes a
ToIntBiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function,
BiFunction<FIRST,SECOND,KEY> keyFunction)
Memoizes a
ToIntBiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function,
BiFunction<FIRST,SECOND,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
ToIntBiFunction in a Caffeine Cache . |
static <FIRST,SECOND> |
toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function,
com.github.benmanes.caffeine.cache.Cache<String,Integer> cache)
Memoizes a
ToIntBiFunction in a Caffeine Cache . |
static <INPUT> ToIntFunction<INPUT> |
toIntFunction(ToIntFunction<INPUT> function)
Memoizes a
ToIntFunction in a Caffeine Cache . |
static <INPUT> ToIntFunction<INPUT> |
toIntFunction(ToIntFunction<INPUT> function,
com.github.benmanes.caffeine.cache.Cache<INPUT,Integer> cache)
Memoizes a
ToIntFunction in a Caffeine Cache . |
static <INPUT,KEY> |
toIntFunction(ToIntFunction<INPUT> function,
Function<INPUT,KEY> keyFunction)
Memoizes a
ToIntFunction in a Caffeine Cache . |
static <INPUT,KEY> |
toIntFunction(ToIntFunction<INPUT> function,
Function<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
Memoizes a
ToIntFunction in a Caffeine Cache . |
static <FIRST,SECOND> |
toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function)
Memoizes a
ToLongBiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function,
BiFunction<FIRST,SECOND,KEY> keyFunction)
Memoizes a
ToLongBiFunction in a Caffeine Cache . |
static <FIRST,SECOND,KEY> |
toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function,
BiFunction<FIRST,SECOND,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
ToLongBiFunction in a Caffeine Cache . |
static <FIRST,SECOND> |
toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function,
com.github.benmanes.caffeine.cache.Cache<String,Long> cache)
Memoizes a
ToLongBiFunction in a Caffeine Cache . |
static <INPUT> ToLongFunction<INPUT> |
toLongFunction(ToLongFunction<INPUT> function)
Memoizes a
ToLongFunction in a Caffeine Cache . |
static <INPUT> ToLongFunction<INPUT> |
toLongFunction(ToLongFunction<INPUT> function,
com.github.benmanes.caffeine.cache.Cache<INPUT,Long> cache)
Memoizes a
ToLongFunction in a Caffeine Cache . |
static <INPUT,KEY> |
toLongFunction(ToLongFunction<INPUT> function,
Function<INPUT,KEY> keyFunction)
Memoizes a
ToLongFunction in a Caffeine Cache . |
static <INPUT,KEY> |
toLongFunction(ToLongFunction<INPUT> function,
Function<INPUT,KEY> keyFunction,
com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
Memoizes a
ToLongFunction in a Caffeine Cache . |
public static <FIRST,SECOND> BiConsumer<FIRST,SECOND> biConsumer(BiConsumer<FIRST,SECOND> biConsumer)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.biConsumer
- The BiConsumer
to memoize.BiConsumer
.public static <FIRST,SECOND,KEY> BiConsumer<FIRST,SECOND> biConsumer(BiConsumer<FIRST,SECOND> biConsumer, BiFunction<FIRST,SECOND,KEY> keyFunction)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.biConsumer
- The BiConsumer
to memoize.keyFunction
- The BiFunction
to compute the cache key.BiConsumer
.public static <FIRST,SECOND,KEY> BiConsumer<FIRST,SECOND> biConsumer(BiConsumer<FIRST,SECOND> biConsumer, BiFunction<FIRST,SECOND,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,KEY> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.biConsumer
- The BiConsumer
to memoize.keyFunction
- The BiFunction
to compute the cache key.cache
- The Cache
to use.BiConsumer
.public static <FIRST,SECOND> BiConsumer<FIRST,SECOND> biConsumer(BiConsumer<FIRST,SECOND> biConsumer, com.github.benmanes.caffeine.cache.Cache<String,String> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.biConsumer
- The BiConsumer
to memoize.cache
- The Cache
to use.BiConsumer
.public static <FIRST,SECOND,OUTPUT> BiFunction<FIRST,SECOND,OUTPUT> biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.OUTPUT
- The type of the output/cache value.biFunction
- The BiFunction
to memoize.BiFunction
.public static <FIRST,SECOND,KEY,OUTPUT> BiFunction<FIRST,SECOND,OUTPUT> biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction, BiFunction<FIRST,SECOND,KEY> keyFunction)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.biFunction
- The BiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.BiFunction
.public static <FIRST,SECOND,KEY,OUTPUT> BiFunction<FIRST,SECOND,OUTPUT> biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction, BiFunction<FIRST,SECOND,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.biFunction
- The BiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.cache
- The Cache
to use.BiFunction
.public static <FIRST,SECOND,OUTPUT> BiFunction<FIRST,SECOND,OUTPUT> biFunction(BiFunction<FIRST,SECOND,OUTPUT> biFunction, com.github.benmanes.caffeine.cache.Cache<String,OUTPUT> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.OUTPUT
- The type of the output/cache value.biFunction
- The BiFunction
to memoize.cache
- The Cache
to use.BiFunction
.public static <FIRST,SECOND> BiPredicate<FIRST,SECOND> biPredicate(BiPredicate<FIRST,SECOND> predicate)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.predicate
- The BiPredicate
to memoize.BiPredicate
.public static <FIRST,SECOND,KEY> BiPredicate<FIRST,SECOND> biPredicate(BiPredicate<FIRST,SECOND> predicate, BiFunction<FIRST,SECOND,KEY> keyFunction)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.predicate
- The BiPredicate
to memoize.keyFunction
- The BiFunction
to compute the cache key.BiPredicate
.public static <FIRST,SECOND,KEY> BiPredicate<FIRST,SECOND> biPredicate(BiPredicate<FIRST,SECOND> predicate, BiFunction<FIRST,SECOND,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.predicate
- The BiPredicate
to memoize.keyFunction
- The BiFunction
to compute the cache key.cache
- The Cache
to use.BiPredicate
.public static <FIRST,SECOND> BiPredicate<FIRST,SECOND> biPredicate(BiPredicate<FIRST,SECOND> predicate, com.github.benmanes.caffeine.cache.Cache<String,Boolean> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.predicate
- The BiPredicate
to memoize.cache
- The Cache
to use.BiPredicate
.public static BooleanSupplier booleanSupplier(BooleanSupplier supplier)
supplier
- The BooleanSupplier
to memoize.BooleanSupplier
.public static BooleanSupplier booleanSupplier(BooleanSupplier supplier, com.github.benmanes.caffeine.cache.Cache<String,Boolean> cache)
supplier
- The BooleanSupplier
to memoize.cache
- The Cache
to use.BooleanSupplier
.public static <KEY> BooleanSupplier booleanSupplier(BooleanSupplier supplier, Supplier<KEY> keySupplier)
KEY
- The type of the cache key.supplier
- The BooleanSupplier
to memoize.keySupplier
- The Supplier
for the cache key.BooleanSupplier
.public static <KEY> BooleanSupplier booleanSupplier(BooleanSupplier supplier, Supplier<KEY> keySupplier, com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
KEY
- The type of the cache key.supplier
- The BooleanSupplier
to memoize.keySupplier
- The Supplier
for the cache key.cache
- The Cache
to use.BooleanSupplier
.public static <INPUT> Consumer<INPUT> consumer(Consumer<INPUT> consumer, com.github.benmanes.caffeine.cache.Cache<INPUT,INPUT> cache)
public static <INPUT,KEY> Consumer<INPUT> consumer(Consumer<INPUT> consumer, Function<INPUT,KEY> keyFunction)
public static <INPUT,KEY> Consumer<INPUT> consumer(Consumer<INPUT> consumer, Function<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
public static DoubleBinaryOperator doubleBinaryOperator(DoubleBinaryOperator operator)
operator
- The DoubleBinaryOperator
to memoize.Function
.public static DoubleBinaryOperator doubleBinaryOperator(DoubleBinaryOperator operator, com.github.benmanes.caffeine.cache.Cache<String,Double> cache)
operator
- The DoubleBinaryOperator
to memoize.cache
- The Cache
to use.DoubleBinaryOperator
.public static <KEY> DoubleBinaryOperator doubleBinaryOperator(DoubleBinaryOperator operator, DoubleBinaryFunction<KEY> keyFunction)
KEY
- The type of the cache key.operator
- The DoubleBinaryOperator
to memoize.keyFunction
- The DoubleBinaryFunction
to compute the cache key.DoubleBinaryOperator
.public static <KEY> DoubleBinaryOperator doubleBinaryOperator(DoubleBinaryOperator operator, DoubleBinaryFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
KEY
- The type of the cache key.operator
- The DoubleBinaryOperator
to memoize.keyFunction
- The DoubleBinaryFunction
to compute the cache key.cache
- The Cache
to use.DoubleBinaryOperator
.public static DoubleConsumer doubleConsumer(DoubleConsumer consumer)
consumer
- The DoubleConsumer
to memoize.DoubleConsumer
.public static DoubleConsumer doubleConsumer(DoubleConsumer consumer, com.github.benmanes.caffeine.cache.Cache<Double,Double> cache)
consumer
- The DoubleConsumer
to memoize.cache
- The Cache
to use.DoubleConsumer
.public static <KEY> DoubleConsumer doubleConsumer(DoubleConsumer consumer, DoubleFunction<KEY> keyFunction)
KEY
- The type of the cache key.consumer
- The DoubleConsumer
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.DoubleConsumer
.public static <KEY> DoubleConsumer doubleConsumer(DoubleConsumer consumer, DoubleFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
KEY
- The type of the cache key.consumer
- The DoubleConsumer
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.cache
- The Cache
to use.DoubleConsumer
.public static <OUTPUT> DoubleFunction<OUTPUT> doubleFunction(DoubleFunction<OUTPUT> function)
OUTPUT
- The type of the output/cache value.function
- The DoubleFunction
to memoize.DoubleFunction
.public static <OUTPUT> DoubleFunction<OUTPUT> doubleFunction(DoubleFunction<OUTPUT> function, com.github.benmanes.caffeine.cache.Cache<Double,OUTPUT> cache)
OUTPUT
- The type of the output/cache value.function
- The DoubleFunction
to memoize.cache
- The Cache
to use.DoubleFunction
.public static <KEY,OUTPUT> DoubleFunction<OUTPUT> doubleFunction(DoubleFunction<OUTPUT> function, DoubleFunction<KEY> keyFunction)
KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.function
- The DoubleFunction
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.DoubleFunction
.public static <KEY,OUTPUT> DoubleFunction<OUTPUT> doubleFunction(DoubleFunction<OUTPUT> function, DoubleFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.function
- The DoubleFunction
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.cache
- The Cache
to use.DoubleFunction
.public static DoublePredicate doublePredicate(DoublePredicate predicate)
predicate
- The DoublePredicate
to memoize.DoublePredicate
.public static DoublePredicate doublePredicate(DoublePredicate predicate, com.github.benmanes.caffeine.cache.Cache<Double,Boolean> cache)
predicate
- The DoublePredicate
to memoize.cache
- The Cache
to use.DoublePredicate
.public static <KEY> DoublePredicate doublePredicate(DoublePredicate predicate, DoubleFunction<KEY> keyFunction)
KEY
- The type of the cache key.predicate
- The DoublePredicate
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.DoublePredicate
.public static <KEY> DoublePredicate doublePredicate(DoublePredicate predicate, DoubleFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
KEY
- The type of the cache key.predicate
- The DoublePredicate
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.cache
- The Cache
to use.DoublePredicate
.public static DoubleSupplier doubleSupplier(DoubleSupplier supplier)
supplier
- The DoubleSupplier
to memoize.DoubleSupplier
.public static DoubleSupplier doubleSupplier(DoubleSupplier supplier, com.github.benmanes.caffeine.cache.Cache<String,Double> cache)
supplier
- The DoubleSupplier
to memoize.cache
- The Cache
to use.DoubleSupplier
.public static <KEY> DoubleSupplier doubleSupplier(DoubleSupplier supplier, Supplier<KEY> keySupplier)
KEY
- The type of the cache key.supplier
- The DoubleSupplier
to memoize.keySupplier
- The Supplier
for the cache key.DoubleSupplier
.public static <KEY> DoubleSupplier doubleSupplier(DoubleSupplier supplier, Supplier<KEY> keySupplier, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
KEY
- The type of the cache key.supplier
- The DoubleSupplier
to memoize.keySupplier
- The Supplier
for the cache key.cache
- The Cache
to use.DoubleSupplier
.public static DoubleToIntFunction doubleToIntFunction(DoubleToIntFunction function)
function
- The DoubleToIntFunction
to memoize.Function
.public static DoubleToIntFunction doubleToIntFunction(DoubleToIntFunction function, com.github.benmanes.caffeine.cache.Cache<Double,Integer> cache)
function
- The DoubleToIntFunction
to memoize.cache
- The Cache
to use.DoubleToIntFunction
.public static <KEY> DoubleToIntFunction doubleToIntFunction(DoubleToIntFunction function, DoubleFunction<KEY> keyFunction)
KEY
- The type of the cache key.function
- The DoubleToIntFunction
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.DoubleToIntFunction
.public static <KEY> DoubleToIntFunction doubleToIntFunction(DoubleToIntFunction function, DoubleFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
KEY
- The type of the cache key.function
- The DoubleToIntFunction
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.cache
- The Cache
to use.DoubleToIntFunction
.public static DoubleToLongFunction doubleToLongFunction(DoubleToLongFunction function)
function
- The DoubleToLongFunction
to memoize.Function
.public static DoubleToLongFunction doubleToLongFunction(DoubleToLongFunction function, com.github.benmanes.caffeine.cache.Cache<Double,Long> cache)
function
- The DoubleToLongFunction
to memoize.cache
- The Cache
to use.DoubleToLongFunction
.public static <KEY> DoubleToLongFunction doubleToLongFunction(DoubleToLongFunction function, DoubleFunction<KEY> keyFunction)
KEY
- The type of the cache key.function
- The DoubleToLongFunction
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.DoubleToLongFunction
.public static <KEY> DoubleToLongFunction doubleToLongFunction(DoubleToLongFunction function, DoubleFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
KEY
- The type of the cache key.function
- The DoubleToLongFunction
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.cache
- The Cache
to use.DoubleToLongFunction
.public static DoubleUnaryOperator doubleUnaryOperator(DoubleUnaryOperator operator)
operator
- The DoubleUnaryOperator
to memoize.Function
.public static DoubleUnaryOperator doubleUnaryOperator(DoubleUnaryOperator operator, com.github.benmanes.caffeine.cache.Cache<Double,Double> cache)
operator
- The DoubleUnaryOperator
to memoize.cache
- The Cache
to use.DoubleUnaryOperator
.public static <KEY> DoubleUnaryOperator doubleUnaryOperator(DoubleUnaryOperator operator, DoubleFunction<KEY> keyFunction)
KEY
- The type of the cache key.operator
- The DoubleUnaryOperator
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.DoubleUnaryOperator
.public static <KEY> DoubleUnaryOperator doubleUnaryOperator(DoubleUnaryOperator operator, DoubleFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
KEY
- The type of the cache key.operator
- The DoubleUnaryOperator
to memoize.keyFunction
- The DoubleFunction
to compute the cache key.cache
- The Cache
to use.DoubleUnaryOperator
.public static <INPUT,OUTPUT> Function<INPUT,OUTPUT> function(Function<INPUT,OUTPUT> function)
public static <INPUT,OUTPUT> Function<INPUT,OUTPUT> function(Function<INPUT,OUTPUT> function, com.github.benmanes.caffeine.cache.Cache<INPUT,OUTPUT> cache)
public static <INPUT,KEY,OUTPUT> Function<INPUT,OUTPUT> function(Function<INPUT,OUTPUT> function, Function<INPUT,KEY> keyFunction)
public static <INPUT,KEY,OUTPUT> Function<INPUT,OUTPUT> function(Function<INPUT,OUTPUT> function, Function<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
public static IntBinaryOperator intBinaryOperator(IntBinaryOperator operator)
operator
- The IntBinaryOperator
to memoize.Function
.public static IntBinaryOperator intBinaryOperator(IntBinaryOperator operator, com.github.benmanes.caffeine.cache.Cache<String,Integer> cache)
operator
- The IntBinaryOperator
to memoize.cache
- The Cache
to use.IntBinaryOperator
.public static <KEY> IntBinaryOperator intBinaryOperator(IntBinaryOperator operator, IntBinaryFunction<KEY> keyFunction)
KEY
- The type of the cache key.operator
- The IntBinaryOperator
to memoize.keyFunction
- The IntBinaryFunction
to compute the cache key.IntBinaryOperator
.public static <KEY> IntBinaryOperator intBinaryOperator(IntBinaryOperator operator, IntBinaryFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
KEY
- The type of the cache key.operator
- The IntBinaryOperator
to memoize.keyFunction
- The IntBinaryFunction
to compute the cache key.cache
- The Cache
to use.IntBinaryOperator
.public static IntConsumer intConsumer(IntConsumer consumer)
consumer
- The IntConsumer
to memoize.IntConsumer
.public static IntConsumer intConsumer(IntConsumer consumer, com.github.benmanes.caffeine.cache.Cache<Integer,Integer> cache)
consumer
- The IntConsumer
to memoize.cache
- The Cache
to use.IntConsumer
.public static <KEY> IntConsumer intConsumer(IntConsumer consumer, IntFunction<KEY> keyFunction)
KEY
- The type of the cache key.consumer
- The IntConsumer
to memoize.keyFunction
- The IntFunction
to compute the cache key.IntConsumer
.public static <KEY> IntConsumer intConsumer(IntConsumer consumer, IntFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
KEY
- The type of the cache key.consumer
- The IntConsumer
to memoize.keyFunction
- The IntFunction
to compute the cache key.cache
- The Cache
to use.IntConsumer
.public static <OUTPUT> IntFunction<OUTPUT> intFunction(IntFunction<OUTPUT> function)
OUTPUT
- The type of the output/cache value.function
- The IntFunction
to memoize.IntFunction
.public static <OUTPUT> IntFunction<OUTPUT> intFunction(IntFunction<OUTPUT> function, com.github.benmanes.caffeine.cache.Cache<Integer,OUTPUT> cache)
OUTPUT
- The type of the output/cache value.function
- The IntFunction
to memoize.cache
- The Cache
to use.IntFunction
.public static <KEY,OUTPUT> IntFunction<OUTPUT> intFunction(IntFunction<OUTPUT> function, IntFunction<KEY> keyFunction)
KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.function
- The IntFunction
to memoize.keyFunction
- The IntFunction
to compute the cache key.IntFunction
.public static <KEY,OUTPUT> IntFunction<OUTPUT> intFunction(IntFunction<OUTPUT> function, IntFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.function
- The IntFunction
to memoize.keyFunction
- The IntFunction
to compute the cache key.cache
- The Cache
to use.IntFunction
.public static IntPredicate intPredicate(IntPredicate predicate)
predicate
- The IntPredicate
to memoize.IntPredicate
.public static IntPredicate intPredicate(IntPredicate predicate, com.github.benmanes.caffeine.cache.Cache<Integer,Boolean> cache)
predicate
- The IntPredicate
to memoize.cache
- The Cache
to use.IntPredicate
.public static <KEY> IntPredicate intPredicate(IntPredicate predicate, IntFunction<KEY> keyFunction)
KEY
- The type of the cache key.predicate
- The IntPredicate
to memoize.keyFunction
- The IntFunction
to compute the cache key.IntPredicate
.public static <KEY> IntPredicate intPredicate(IntPredicate predicate, IntFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
KEY
- The type of the cache key.predicate
- The IntPredicate
to memoize.keyFunction
- The IntFunction
to compute the cache key.cache
- The Cache
to use.IntPredicate
.public static IntSupplier intSupplier(IntSupplier supplier)
supplier
- The IntSupplier
to memoize.IntSupplier
.public static IntSupplier intSupplier(IntSupplier supplier, com.github.benmanes.caffeine.cache.Cache<String,Integer> cache)
supplier
- The IntSupplier
to memoize.cache
- The Cache
to use.IntSupplier
.public static <KEY> IntSupplier intSupplier(IntSupplier supplier, Supplier<KEY> keySupplier)
KEY
- The type of the cache key.supplier
- The IntSupplier
to memoize.keySupplier
- The Supplier
for the cache key.IntSupplier
.public static <KEY> IntSupplier intSupplier(IntSupplier supplier, Supplier<KEY> keySupplier, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
KEY
- The type of the cache key.supplier
- The IntSupplier
to memoize.keySupplier
- The Supplier
for the cache key.cache
- The Cache
to use.IntSupplier
.public static IntToDoubleFunction intToDoubleFunction(IntToDoubleFunction function)
function
- The IntToDoubleFunction
to memoize.Function
.public static IntToDoubleFunction intToDoubleFunction(IntToDoubleFunction function, com.github.benmanes.caffeine.cache.Cache<Integer,Double> cache)
function
- The IntToDoubleFunction
to memoize.cache
- The Cache
to use.IntToDoubleFunction
.public static <KEY> IntToDoubleFunction intToDoubleFunction(IntToDoubleFunction function, IntFunction<KEY> keyFunction)
KEY
- The type of the cache key.function
- The IntToDoubleFunction
to memoize.keyFunction
- The IntFunction
to compute the cache key.IntToDoubleFunction
.public static <KEY> IntToDoubleFunction intToDoubleFunction(IntToDoubleFunction function, IntFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
KEY
- The type of the cache key.function
- The IntToDoubleFunction
to memoize.keyFunction
- The IntFunction
to compute the cache key.cache
- The Cache
to use.IntToDoubleFunction
.public static IntToLongFunction intToLongFunction(IntToLongFunction function)
function
- The IntToLongFunction
to memoize.Function
.public static IntToLongFunction intToLongFunction(IntToLongFunction function, com.github.benmanes.caffeine.cache.Cache<Integer,Long> cache)
function
- The IntToLongFunction
to memoize.cache
- The Cache
to use.IntToLongFunction
.public static <KEY> IntToLongFunction intToLongFunction(IntToLongFunction function, IntFunction<KEY> keyFunction)
KEY
- The type of the cache key.function
- The IntToLongFunction
to memoize.keyFunction
- The IntFunction
to compute the cache key.IntToLongFunction
.public static <KEY> IntToLongFunction intToLongFunction(IntToLongFunction function, IntFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
KEY
- The type of the cache key.function
- The IntToLongFunction
to memoize.keyFunction
- The IntFunction
to compute the cache key.cache
- The Cache
to use.IntToLongFunction
.public static IntUnaryOperator intUnaryOperator(IntUnaryOperator operator)
operator
- The IntUnaryOperator
to memoize.IntUnaryOperator
.public static IntUnaryOperator intUnaryOperator(IntUnaryOperator operator, com.github.benmanes.caffeine.cache.Cache<Integer,Integer> cache)
operator
- The IntUnaryOperator
to memoize.cache
- The Cache
to use.IntUnaryOperator
.public static <KEY> IntUnaryOperator intUnaryOperator(IntUnaryOperator operator, IntFunction<KEY> keyFunction)
KEY
- The type of the cache key.operator
- The IntUnaryOperator
to memoize.keyFunction
- The IntFunction
to compute the cache key.IntUnaryOperator
.public static <KEY> IntUnaryOperator intUnaryOperator(IntUnaryOperator operator, IntFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
KEY
- The type of the cache key.operator
- The IntUnaryOperator
to memoize.keyFunction
- The IntFunction
to compute the cache key.cache
- The Cache
to use.IntUnaryOperator
.public static LongBinaryOperator longBinaryOperator(LongBinaryOperator operator)
operator
- The LongBinaryOperator
to memoize.LongBinaryOperator
.public static LongBinaryOperator longBinaryOperator(LongBinaryOperator operator, com.github.benmanes.caffeine.cache.Cache<String,Long> cache)
operator
- The LongBinaryOperator
to memoize.cache
- The Cache
to use.LongBinaryOperator
.public static <KEY> LongBinaryOperator longBinaryOperator(LongBinaryOperator operator, LongBinaryFunction<KEY> keyFunction)
KEY
- The type of the cache key.operator
- The LongBinaryOperator
to memoize.keyFunction
- The LongBinaryFunction
to compute the cache key.LongBinaryOperator
.public static <KEY> LongBinaryOperator longBinaryOperator(LongBinaryOperator operator, LongBinaryFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
KEY
- The type of the cache key.operator
- The LongBinaryOperator
to memoize.keyFunction
- The LongBinaryFunction
to compute the cache key.cache
- The Cache
to use.LongBinaryOperator
.public static LongConsumer longConsumer(LongConsumer consumer)
consumer
- The LongConsumer
to memoize.LongConsumer
.public static LongConsumer longConsumer(LongConsumer consumer, com.github.benmanes.caffeine.cache.Cache<Long,Long> cache)
consumer
- The LongConsumer
to memoize.cache
- The Cache
to use.LongConsumer
.public static <KEY> LongConsumer longConsumer(LongConsumer consumer, LongFunction<KEY> keyFunction)
KEY
- The type of the cache key.consumer
- The LongConsumer
to memoize.keyFunction
- The LongFunction
to compute the cache key.LongConsumer
.public static <KEY> LongConsumer longConsumer(LongConsumer consumer, LongFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
KEY
- The type of the cache key.consumer
- The LongConsumer
to memoize.keyFunction
- The LongFunction
to compute the cache key.cache
- The Cache
to use.LongConsumer
.public static <OUTPUT> LongFunction<OUTPUT> longFunction(LongFunction<OUTPUT> function)
OUTPUT
- The type of the output/cache value.function
- The LongFunction
to memoize.LongFunction
.public static <OUTPUT> LongFunction<OUTPUT> longFunction(LongFunction<OUTPUT> function, com.github.benmanes.caffeine.cache.Cache<Long,OUTPUT> cache)
OUTPUT
- The type of the output/cache value.function
- The LongFunction
to memoize.cache
- The Cache
to use.LongFunction
.public static <KEY,OUTPUT> LongFunction<OUTPUT> longFunction(LongFunction<OUTPUT> function, LongFunction<KEY> keyFunction)
KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.function
- The LongFunction
to memoize.keyFunction
- The LongFunction
to compute the cache key.LongFunction
.public static <KEY,OUTPUT> LongFunction<OUTPUT> longFunction(LongFunction<OUTPUT> function, LongFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
KEY
- The type of the cache key.OUTPUT
- The type of the output/cache value.function
- The LongFunction
to memoize.keyFunction
- The LongFunction
to compute the cache key.cache
- The Cache
to use.LongFunction
.public static LongPredicate longPredicate(LongPredicate predicate)
predicate
- The LongPredicate
to memoize.LongPredicate
.public static LongPredicate longPredicate(LongPredicate predicate, com.github.benmanes.caffeine.cache.Cache<Long,Boolean> cache)
predicate
- The LongPredicate
to memoize.cache
- The Cache
to use.LongPredicate
.public static <KEY> LongPredicate longPredicate(LongPredicate predicate, LongFunction<KEY> keyFunction)
KEY
- The type of the cache key.predicate
- The LongPredicate
to memoize.keyFunction
- The LongFunction
to compute the cache key.LongPredicate
.public static <KEY> LongPredicate longPredicate(LongPredicate predicate, LongFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
KEY
- The type of the cache key.predicate
- The LongPredicate
to memoize.keyFunction
- The LongFunction
to compute the cache key.cache
- The Cache
to use.LongPredicate
.public static LongSupplier longSupplier(LongSupplier supplier)
supplier
- The LongSupplier
to memoize.LongSupplier
.public static LongSupplier longSupplier(LongSupplier supplier, com.github.benmanes.caffeine.cache.Cache<String,Long> cache)
supplier
- The LongSupplier
to memoize.cache
- The Cache
to use.LongSupplier
.public static <KEY> LongSupplier longSupplier(LongSupplier supplier, Supplier<KEY> keySupplier)
KEY
- The type of the cache key.supplier
- The LongSupplier
to memoize.keySupplier
- The Supplier
for the cache key.LongSupplier
.public static <KEY> LongSupplier longSupplier(LongSupplier supplier, Supplier<KEY> keySupplier, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
KEY
- The type of the cache key.supplier
- The LongSupplier
to memoize.keySupplier
- The Supplier
for the cache key.cache
- The Cache
to use.LongSupplier
.public static LongToDoubleFunction longToDoubleFunction(LongToDoubleFunction function)
function
- The LongToDoubleFunction
to memoize.LongToDoubleFunction
.public static LongToDoubleFunction longToDoubleFunction(LongToDoubleFunction function, com.github.benmanes.caffeine.cache.Cache<Long,Double> cache)
function
- The LongToDoubleFunction
to memoize.cache
- The Cache
to use.LongToDoubleFunction
.public static <KEY> LongToDoubleFunction longToDoubleFunction(LongToDoubleFunction function, LongFunction<KEY> keyFunction)
KEY
- The type of the cache key.function
- The LongToDoubleFunction
to memoize.keyFunction
- The LongFunction
to compute the cache key.LongToDoubleFunction
.public static <KEY> LongToDoubleFunction longToDoubleFunction(LongToDoubleFunction function, LongFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
KEY
- The type of the cache key.function
- The LongToDoubleFunction
to memoize.keyFunction
- The LongFunction
to compute the cache key.cache
- The Cache
to use.LongToDoubleFunction
.public static LongToIntFunction longToIntFunction(LongToIntFunction function)
function
- The LongToIntFunction
to memoize.LongToIntFunction
.public static LongToIntFunction longToIntFunction(LongToIntFunction function, com.github.benmanes.caffeine.cache.Cache<Long,Integer> cache)
function
- The LongToIntFunction
to memoize.cache
- The Cache
to use.LongToIntFunction
.public static <KEY> LongToIntFunction longToIntFunction(LongToIntFunction function, LongFunction<KEY> keyFunction)
KEY
- The type of the cache key.function
- The LongToIntFunction
to memoize.keyFunction
- The LongFunction
to compute the cache key.LongToIntFunction
.public static <KEY> LongToIntFunction longToIntFunction(LongToIntFunction function, LongFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
KEY
- The type of the cache key.function
- The LongToIntFunction
to memoize.keyFunction
- The LongFunction
to compute the cache key.cache
- The Cache
to use.LongToIntFunction
.public static LongUnaryOperator longUnaryOperator(LongUnaryOperator operator)
operator
- The LongUnaryOperator
to memoize.LongUnaryOperator
.public static LongUnaryOperator longUnaryOperator(LongUnaryOperator operator, com.github.benmanes.caffeine.cache.Cache<Long,Long> cache)
operator
- The LongUnaryOperator
to memoize.cache
- The Cache
to use.LongUnaryOperator
.public static <KEY> LongUnaryOperator longUnaryOperator(LongUnaryOperator operator, LongFunction<KEY> keyFunction)
KEY
- The type of the cache key.operator
- The LongUnaryOperator
to memoize.keyFunction
- The LongFunction
to compute the cache key.LongUnaryOperator
.public static <KEY> LongUnaryOperator longUnaryOperator(LongUnaryOperator operator, LongFunction<KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
KEY
- The type of the cache key.operator
- The LongUnaryOperator
to memoize.keyFunction
- The LongFunction
to compute the cache key.cache
- The Cache
to use.LongUnaryOperator
.public static <INPUT> ObjDoubleConsumer<INPUT> objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer)
INPUT
- The type of the input.consumer
- The ObjDoubleConsumer
to memoize.ObjDoubleConsumer
.public static <INPUT> ObjDoubleConsumer<INPUT> objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer, com.github.benmanes.caffeine.cache.Cache<String,INPUT> cache)
INPUT
- The type of the input.consumer
- The ObjDoubleConsumer
to memoize.cache
- The Cache
to use.ObjDoubleConsumer
.public static <INPUT,KEY> ObjDoubleConsumer<INPUT> objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer, ObjDoubleFunction<INPUT,KEY> keyFunction)
INPUT
- The type of the input.KEY
- The type of the cache key.consumer
- The ObjDoubleConsumer
to memoize.keyFunction
- The ObjDoubleFunction
to compute the cache key.ObjDoubleConsumer
.public static <INPUT,KEY> ObjDoubleConsumer<INPUT> objDoubleConsumer(ObjDoubleConsumer<INPUT> consumer, ObjDoubleFunction<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
INPUT
- The type of the input.KEY
- The type of the cache key.consumer
- The ObjDoubleConsumer
to memoize.keyFunction
- The ObjDoubleFunction
to compute the cache key.cache
- The Cache
to use.ObjDoubleConsumer
.public static <INPUT> ObjIntConsumer<INPUT> objIntConsumer(ObjIntConsumer<INPUT> consumer, com.github.benmanes.caffeine.cache.Cache<String,INPUT> cache)
INPUT
- The type of the input.consumer
- The ObjIntConsumer
to memoize.cache
- The Cache
to use.ObjIntConsumer
.public static <INPUT,KEY> ObjIntConsumer<INPUT> objIntConsumer(ObjIntConsumer<INPUT> consumer, ObjIntFunction<INPUT,KEY> keyFunction)
INPUT
- The type of the input.KEY
- The type of the cache key.consumer
- The ObjIntConsumer
to memoize.keyFunction
- The ObjIntFunction
to compute the cache key.ObjIntConsumer
.public static <INPUT,KEY> ObjIntConsumer<INPUT> objIntConsumer(ObjIntConsumer<INPUT> consumer, ObjIntFunction<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
INPUT
- The type of the input.KEY
- The type of the cache key.consumer
- The ObjIntConsumer
to memoize.keyFunction
- The ObjIntFunction
to compute the cache key.cache
- The Cache
to use.ObjIntConsumer
.public static <INPUT> ObjIntConsumer<INPUT> objIntConsumer(ObjIntConsumer<INPUT> consumer)
INPUT
- The type of the input.consumer
- The ObjIntConsumer
to memoize.ObjIntConsumer
.public static <INPUT> ObjLongConsumer<INPUT> objLongConsumer(ObjLongConsumer<INPUT> consumer)
INPUT
- The type of the input.consumer
- The ObjLongConsumer
to memoize.ObjLongConsumer
.public static <INPUT> ObjLongConsumer<INPUT> objLongConsumer(ObjLongConsumer<INPUT> consumer, com.github.benmanes.caffeine.cache.Cache<String,INPUT> cache)
INPUT
- The type of the input.consumer
- The ObjLongConsumer
to memoize.cache
- The Cache
to use.ObjLongConsumer
.public static <INPUT,KEY> ObjLongConsumer<INPUT> objLongConsumer(ObjLongConsumer<INPUT> consumer, ObjLongFunction<INPUT,KEY> keyFunction)
INPUT
- The type of the input.KEY
- The type of the cache key.consumer
- The ObjLongConsumer
to memoize.keyFunction
- The ObjLongFunction
to compute the cache key.ObjLongConsumer
.public static <INPUT,KEY> ObjLongConsumer<INPUT> objLongConsumer(ObjLongConsumer<INPUT> consumer, ObjLongFunction<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,INPUT> cache)
INPUT
- The type of the input.KEY
- The type of the cache key.consumer
- The ObjLongConsumer
to memoize.keyFunction
- The ObjLongFunction
to compute the cache key.cache
- The Cache
to use.ObjLongConsumer
.public static <INPUT> Predicate<INPUT> predicate(Predicate<INPUT> predicate, com.github.benmanes.caffeine.cache.Cache<INPUT,Boolean> cache)
public static <INPUT,KEY> Predicate<INPUT> predicate(Predicate<INPUT> predicate, Function<INPUT,KEY> keyFunction)
public static <INPUT,KEY> Predicate<INPUT> predicate(Predicate<INPUT> predicate, Function<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Boolean> cache)
public static <OUTPUT> Supplier<OUTPUT> supplier(Supplier<OUTPUT> supplier, com.github.benmanes.caffeine.cache.Cache<String,OUTPUT> cache)
public static <KEY,OUTPUT> Supplier<OUTPUT> supplier(Supplier<OUTPUT> supplier, Supplier<KEY> keySupplier)
public static <KEY,OUTPUT> Supplier<OUTPUT> supplier(Supplier<OUTPUT> supplier, Supplier<KEY> keySupplier, com.github.benmanes.caffeine.cache.Cache<KEY,OUTPUT> cache)
public static <FIRST,SECOND> ToDoubleBiFunction<FIRST,SECOND> toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.function
- The ToDoubleBiFunction
to memoize.ToDoubleBiFunction
.public static <FIRST,SECOND,KEY> ToDoubleBiFunction<FIRST,SECOND> toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function, BiFunction<FIRST,SECOND,KEY> keyFunction)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.function
- The ToDoubleBiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.ToDoubleBiFunction
.public static <FIRST,SECOND,KEY> ToDoubleBiFunction<FIRST,SECOND> toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function, BiFunction<FIRST,SECOND,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.function
- The ToDoubleBiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.cache
- The Cache
to use.ToDoubleBiFunction
.public static <FIRST,SECOND> ToDoubleBiFunction<FIRST,SECOND> toDoubleBiFunction(ToDoubleBiFunction<FIRST,SECOND> function, com.github.benmanes.caffeine.cache.Cache<String,Double> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.function
- The ToDoubleBiFunction
to memoize.cache
- The Cache
to use.ToDoubleBiFunction
.public static <INPUT> ToDoubleFunction<INPUT> toDoubleFunction(ToDoubleFunction<INPUT> function)
INPUT
- The type of the input.function
- The ToDoubleFunction
to memoize.ToDoubleFunction
.public static <INPUT> ToDoubleFunction<INPUT> toDoubleFunction(ToDoubleFunction<INPUT> function, com.github.benmanes.caffeine.cache.Cache<INPUT,Double> cache)
INPUT
- The type of the input.function
- The ToDoubleFunction
to memoize.cache
- The Cache
to use.ToDoubleFunction
.public static <INPUT,KEY> ToDoubleFunction<INPUT> toDoubleFunction(ToDoubleFunction<INPUT> function, Function<INPUT,KEY> keyFunction)
INPUT
- The type of the input.KEY
- The type of the cache key.function
- The ToDoubleFunction
to memoize.keyFunction
- The Function
to compute the cache key.ToDoubleFunction
.public static <INPUT,KEY> ToDoubleFunction<INPUT> toDoubleFunction(ToDoubleFunction<INPUT> function, Function<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Double> cache)
INPUT
- The type of the input.KEY
- The type of the cache key.function
- The ToDoubleFunction
to memoize.keyFunction
- The Function
to compute the cache key.cache
- The Cache
to use.ToDoubleFunction
.public static <FIRST,SECOND> ToIntBiFunction<FIRST,SECOND> toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.function
- The ToIntBiFunction
to memoize.ToIntBiFunction
.public static <FIRST,SECOND,KEY> ToIntBiFunction<FIRST,SECOND> toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function, BiFunction<FIRST,SECOND,KEY> keyFunction)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.function
- The ToIntBiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.ToIntBiFunction
.public static <FIRST,SECOND,KEY> ToIntBiFunction<FIRST,SECOND> toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function, BiFunction<FIRST,SECOND,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.function
- The ToIntBiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.cache
- The Cache
to use.ToIntBiFunction
.public static <FIRST,SECOND> ToIntBiFunction<FIRST,SECOND> toIntBiFunction(ToIntBiFunction<FIRST,SECOND> function, com.github.benmanes.caffeine.cache.Cache<String,Integer> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.function
- The ToIntBiFunction
to memoize.cache
- The Cache
to use.ToIntBiFunction
.public static <INPUT> ToIntFunction<INPUT> toIntFunction(ToIntFunction<INPUT> function)
INPUT
- The type of the input.function
- The ToIntFunction
to memoize.ToIntFunction
.public static <INPUT> ToIntFunction<INPUT> toIntFunction(ToIntFunction<INPUT> function, com.github.benmanes.caffeine.cache.Cache<INPUT,Integer> cache)
INPUT
- The type of the input.function
- The ToIntFunction
to memoize.cache
- The Cache
to use.ToIntFunction
.public static <INPUT,KEY> ToIntFunction<INPUT> toIntFunction(ToIntFunction<INPUT> function, Function<INPUT,KEY> keyFunction)
INPUT
- The type of the input.KEY
- The type of the cache key.function
- The ToIntFunction
to memoize.keyFunction
- The Function
to compute the cache key.ToIntFunction
.public static <INPUT,KEY> ToIntFunction<INPUT> toIntFunction(ToIntFunction<INPUT> function, Function<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Integer> cache)
INPUT
- The type of the input.KEY
- The type of the cache key.function
- The ToIntFunction
to memoize.keyFunction
- The Function
to compute the cache key.cache
- The Cache
to use.ToIntFunction
.public static <FIRST,SECOND> ToLongBiFunction<FIRST,SECOND> toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.function
- The ToLongBiFunction
to memoize.ToLongBiFunction
.public static <FIRST,SECOND,KEY> ToLongBiFunction<FIRST,SECOND> toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function, BiFunction<FIRST,SECOND,KEY> keyFunction)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.function
- The ToLongBiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.ToLongBiFunction
.public static <FIRST,SECOND,KEY> ToLongBiFunction<FIRST,SECOND> toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function, BiFunction<FIRST,SECOND,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.KEY
- The type of the cache key.function
- The ToLongBiFunction
to memoize.keyFunction
- The BiFunction
to compute the cache key.cache
- The Cache
to use.ToLongBiFunction
.public static <FIRST,SECOND> ToLongBiFunction<FIRST,SECOND> toLongBiFunction(ToLongBiFunction<FIRST,SECOND> function, com.github.benmanes.caffeine.cache.Cache<String,Long> cache)
FIRST
- The type of the first parameter.SECOND
- The type of the second parameter.function
- The ToLongBiFunction
to memoize.cache
- The Cache
to use.ToLongBiFunction
.public static <INPUT> ToLongFunction<INPUT> toLongFunction(ToLongFunction<INPUT> function, com.github.benmanes.caffeine.cache.Cache<INPUT,Long> cache)
INPUT
- The type of the input.function
- The ToLongFunction
to memoize.cache
- The Cache
to use.ToLongFunction
.public static <INPUT,KEY> ToLongFunction<INPUT> toLongFunction(ToLongFunction<INPUT> function, Function<INPUT,KEY> keyFunction)
INPUT
- The type of the input.KEY
- The type of the cache key.function
- The ToLongFunction
to memoize.keyFunction
- The Function
to compute the cache key.ToLongFunction
.public static <INPUT,KEY> ToLongFunction<INPUT> toLongFunction(ToLongFunction<INPUT> function, Function<INPUT,KEY> keyFunction, com.github.benmanes.caffeine.cache.Cache<KEY,Long> cache)
INPUT
- The type of the input.KEY
- The type of the cache key.function
- The ToLongFunction
to memoize.keyFunction
- The Function
to compute the cache key.cache
- The Cache
to use.ToLongFunction
.public static <INPUT> ToLongFunction<INPUT> toLongFunction(ToLongFunction<INPUT> function)
INPUT
- The type of the input.function
- The ToLongFunction
to memoize.ToLongFunction
.Copyright © 2016 metio.wtf. All rights reserved.