Class Memoizer<I,O>
- java.lang.Object
-
- com.azure.spring.data.cosmos.common.Memoizer<I,O>
-
public final class Memoizer<I,O> extends Object
Memoize function computation results
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <I,O>
Function<I,O>memoize(Function<I,O> function)Put function computation results into Memoizer
-
-
-
Method Detail
-
memoize
public static <I,O> Function<I,O> memoize(Function<I,O> function)
Put function computation results into Memoizer- Type Parameters:
I- the type of the input to the functionO- the type of the output of the function- Parameters:
function- represents a function that accepts one argument and produces a result- Returns:
- Function
-
-