Interface StatementWithReturnValue<V>


public interface StatementWithReturnValue<V>
Code that returns a value if it is executed by Fishbowl.exceptionThrownBy(Statement). This code may throw a Throwable. Therefore we cannot use Callable.
  • Method Summary

    Modifier and Type
    Method
    Description
    Computes a value, or throws an exception if unable to do so.
  • Method Details

    • evaluate

      V evaluate() throws Throwable
      Computes a value, or throws an exception if unable to do so.
      Returns:
      computed value
      Throws:
      Throwable - an exception if it cannot compute the value