Memoizer<I,O> Class
- java.
lang. Object - com.
azure. spring. data. cosmos. common. Memoizer<I,O>
- com.
Type Parameters
- I
the type of the input to the function.
- O
the type of the output of the function.
public final class Memoizer<I,O>
Memoize function computation results
Method Summary
Modifier and Type | Method and Description |
---|---|
static Function<I,O> |
<I,O>memoize(Function<I,O> function)
Put function computation results into Memoizer |
Methods inherited from java.lang.Object
Method Details
<I,O>memoize
public static Function memoize(Function function)
Put function computation results into Memoizer
Parameters:
function
- represents a function that accepts one argument and produces a result
Returns:
Function
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java