Class MemoizedFunction<T,R>
java.lang.Object
net.neoforged.neoforge.common.util.MemoizedFunction<T,R>
- All Implemented Interfaces:
Function<T,R>
-
Field Details
-
function
-
cache
-
-
Constructor Details
-
MemoizedFunction
-
-
Method Details
-
of
Wraps and memoizes the given function.- Parameters:
function- the function to be wrapped- Returns:
- the memoized function
-
apply
-
toString
-
clear
public void clear()Clears the cache of this memoized function.
-