org.jopendocument.util.cache
Class Memoizer<A,V,X extends Exception>
java.lang.Object
org.jopendocument.util.cache.Memoizer<A,V,X>
- All Implemented Interfaces:
- ITransformerExn<A,V,X>
@ThreadSafe
public class Memoizer<A,V,X extends Exception>
- extends Object
- implements ITransformerExn<A,V,X>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Memoizer
public Memoizer(ITransformerExn<A,V,X> c)
Memoizer
public Memoizer(ITransformerExn<A,V,X> c,
ConcurrentMap<A,Future<V>> cache)
getCachedItems
public final Set<A> getCachedItems()
transformChecked
public final V transformChecked(A arg)
throws X extends Exception
- Specified by:
transformChecked
in interface ITransformerExn<A,V,X extends Exception>
- Throws:
X extends Exception
Copyright © 2010 jOpenDocument All Rights Reserved.