Package net.sf.freecol.common.util
Class CachingFunction<T,R>
- java.lang.Object
-
- net.sf.freecol.common.util.CachingFunction<T,R>
-
- All Implemented Interfaces:
java.util.function.Function<T,R>
public class CachingFunction<T,R> extends java.lang.Object implements java.util.function.Function<T,R>
Wrapper for a Function that caches its results.
-
-
Constructor Summary
Constructors Constructor Description CachingFunction(java.util.function.Function<T,R> wrapped)
Create a new caching function.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
apply(T t)
-