Class ResultTranslator<F,T>

java.lang.Object
com.googlecode.objectify.util.ResultCache<T>
com.googlecode.objectify.util.ResultTranslator<F,T>
All Implemented Interfaces:
Result<T>, Serializable
Direct Known Subclasses:
MakeListResult, ResultWrapper

public abstract class ResultTranslator<F,T> extends ResultCache<T>
Translates from one arbitrary thing to a Result of another arbitrary thing, caching the value.
Author:
Jeff Schnitzer invalid input: '<'[email protected]>
See Also:
  • Constructor Details

    • ResultTranslator

      public ResultTranslator(F from)
  • Method Details

    • translate

      protected abstract T translate(F from)
    • nowUncached

      public T nowUncached()
      Specified by:
      nowUncached in class ResultCache<T>
    • toString

      public String toString()
      We can get away with this because the subclass almost always provides concrete types
      Overrides:
      toString in class ResultCache<T>