Interface SignalOperation.ResultOrError<T>

Type Parameters:
T - the result type in case the operation was successful
All Known Implementing Classes:
SignalOperation.Error, SignalOperation.Result
Enclosing class:
SignalOperation<T>

public static sealed interface SignalOperation.ResultOrError<T> permits SignalOperation.Result<T>, SignalOperation.Error<T>
The result of a signal operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether this instance represents successfully applied signal operation.
  • Method Details

    • successful

      boolean successful()
      Checks whether this instance represents successfully applied signal operation.
      Returns:
      true if the operation was successful, false if there was an error