Interface WatchResult<T>


public interface WatchResult<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    A Throwable describing failure.
    boolean
    Did it fail?
    The next result of the operation.
    The previous result of the operation.
    boolean
    Did it succeed?
  • Method Details

    • prevResult

      T prevResult()
      The previous result of the operation.
      Returns:
      the previous result.
    • nextResult

      T nextResult()
      The next result of the operation. This will be null if the operation failed.
      Returns:
      the next result or null if the operation failed.
    • cause

      Throwable cause()
      A Throwable describing failure. This will be null if the operation succeeded.
      Returns:
      the cause or null if the operation succeeded.
    • succeeded

      boolean succeeded()
      Did it succeed?
      Returns:
      true if it succeded or false otherwise
    • failed

      boolean failed()
      Did it fail?
      Returns:
      true if it failed or false otherwise