Class Memoizer<T,R>
java.lang.Object
com.atlassian.confluence.impl.util.Memoizer<T,R>
This class can be used to create functions that calculate results only once.
The lifetime of the results is the lifetime of the function.
- Since:
- 5.8
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T,
U, R> BiFunction<T, U, R> memoize
(BiFunction<T, U, R> function) static <T,
R> Function<T, R>
-
Method Details
-
memoize
-
memoize
-