Interface ISuccessIndicator

All Known Implementing Classes:
ESuccess, SuccessWithValue

public interface ISuccessIndicator
Very simple interface for an object that has success/failure indication.
Author:
Philip Helger
  • Method Details

    • isSuccess

      boolean isSuccess()
      Returns:
      true on success and false on failure.
    • isFailure

      default boolean isFailure()
      Returns:
      true on failure and false on success.
    • or

      @Nonnull default ESuccess or(@Nonnull ISuccessIndicator aSuccess)
    • and

      @Nonnull default ESuccess and(@Nonnull ISuccessIndicator aSuccess)