Make final mappingFunction variable. (#876)
This commit is contained in:
parent
e6dadcb49a
commit
b58fb5bdc1
|
@ -47,7 +47,7 @@ import java.util.function.Function;
|
||||||
public class Memoizer<I, O> implements Computable<I, O> {
|
public class Memoizer<I, O> implements Computable<I, O> {
|
||||||
|
|
||||||
private final ConcurrentMap<I, Future<O>> cache = new ConcurrentHashMap<>();
|
private final ConcurrentMap<I, Future<O>> cache = new ConcurrentHashMap<>();
|
||||||
private Function<? super I, ? extends Future<O>> mappingFunction;
|
private final Function<? super I, ? extends Future<O>> mappingFunction;
|
||||||
private final boolean recalculate;
|
private final boolean recalculate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue