Memoizer<I,O> Class

  • java.lang.Object
    • com.azure.spring.data.cosmos.common.Memoizer<I,O>

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