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 Details

    • 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 function
      O - the type of the output of the function
      Parameters:
      function - represents a function that accepts one argument and produces a result
      Returns:
      Function