Class Memoizer<I,​O>


  • public final class Memoizer<I,​O>
    extends Object
    Memoize function computation results
    • 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 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