Class Functions.WeakMemoizer<A,B>

java.lang.Object
io.atlassian.fugue.Functions.WeakMemoizer<A,B>
Type Parameters:
A - comparable descriptor, the usual rules for any HashMap key apply.
B - the value
All Implemented Interfaces:
Function<A,B>
Enclosing class:
Functions

static final class Functions.WeakMemoizer<A,B> extends Object implements Function<A,B>
Class supports the implementation of Functions.weakMemoize(Function) and is not intended for general use. Functions.WeakMemoizer caches the result of another function. The result is weakly referenced internally. This is useful if the result is expensive to compute or the identity of the result is particularly important.

If the results from this function are further cached then they will tend to stay in this cache for longer.

Since:
1.1