All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.objectify.util.ResultWrapper Maven / Gradle / Ivy

There is a newer version: 6.1.2
Show newest version
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