Package com.googlecode.objectify.util
Class ResultWrapper<F,T>
- java.lang.Object
-
- com.googlecode.objectify.util.ResultCache<T>
-
- com.googlecode.objectify.util.ResultTranslator<Result<F>,T>
-
- com.googlecode.objectify.util.ResultWrapper<F,T>
-
- All Implemented Interfaces:
Result<T>
,Serializable
public abstract class ResultWrapper<F,T> extends ResultTranslator<Result<F>,T>
Wraps a Result, translating from one type to another and caching the result- Author:
- Jeff Schnitzer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResultWrapper(Result<F> base)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected T
translate(Result<F> from)
protected abstract T
wrap(F orig)
-
Methods inherited from class com.googlecode.objectify.util.ResultTranslator
nowUncached, toString
-
Methods inherited from class com.googlecode.objectify.util.ResultCache
isExecuted, now, postExecuteHook, writeReplace
-
-