Class ResultNow<T>

java.lang.Object
com.googlecode.objectify.util.ResultNow<T>
All Implemented Interfaces:
Result<T>, Serializable

public class ResultNow<T> extends Object implements Result<T>, Serializable
Simplistic result that holds a constant value.
Author:
Jeff Schnitzer invalid input: '<'[email protected]>
See Also:
  • Constructor Details

    • ResultNow

      public ResultNow(T value)
  • Method Details

    • now

      public T now()
      Description copied from interface: Result
      Waits if necessary for the computation to complete, and then retrieves its result. If the computation produced an exception, it will be thrown here.
      Specified by:
      now in interface Result<T>
      Returns:
      the computed result
    • toString

      public String toString()
      Overrides:
      toString in class Object