public class Memoizer<K,V> extends Object implements Computable<K,V>
| Constructor and Description |
|---|
Memoizer(Computable<K,V> c)
Constructs a new
Memoizer with the specified cache source. |
public Memoizer(Computable<K,V> c)
Memoizer with the specified cache source.c - is the cache value source algorithmNullPointerException - if c is nullpublic V compute(K key) throws InterruptedException
compute in interface Computable<K,V>InterruptedExceptionCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.