com.googlecode.objectify.util.ResultWrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectify Show documentation
Show all versions of objectify Show documentation
The simplest convenient interface to the Google App Engine datastore
package com.googlecode.objectify.util;
import com.googlecode.objectify.Result;
/**
* Wraps a Result, translating from one type to another and caching the result
*
* @author Jeff Schnitzer
*/
abstract public class ResultWrapper extends ResultTranslator, T>
{
private static final long serialVersionUID = 1L;
public ResultWrapper(Result base) {
super(base);
}
protected abstract T wrap(F orig);
@Override
final protected T translate(Result from) {
return wrap(from.now());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy