你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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