|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.util.Memoizer<A,R>
A
- the type of the single argumentR
- the type of the return valuepublic class Memoizer<A,R>
Class to Memoize a function. Provides a version of a function that remembers past function results.
Constructor Summary | |
---|---|
Memoizer(java.lang.Object object,
java.lang.String methodName,
java.lang.Class<A> argType)
Create a Memoizer |
Method Summary | |
---|---|
R |
get(A a)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Memoizer(java.lang.Object object, java.lang.String methodName, java.lang.Class<A> argType)
object
- the object on which to invoke the methodmethodName
- the method to callargType
- the single argument type
java.lang.NoSuchMethodException
Method Detail |
---|
public R get(A a)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |