Interface IHandledIndicator

All Known Implementing Classes:
EHandled

public interface IHandledIndicator
Very simple interface for an object that has handled indication.
Since:
9.0.0
Author:
Philip Helger
  • Method Summary

    Modifier and Type
    Method
    Description
    default @NonNull EHandled
    and(@NonNull IHandledIndicator aOther)
    Logical AND of this handled indicator with another one.
    boolean
     
    default boolean
     
    default @NonNull EHandled
    or(@NonNull IHandledIndicator aOther)
    Logical OR of this handled indicator with another one.
  • Method Details

    • isHandled

      boolean isHandled()
      Returns:
      true if handled and false if not.
    • isUnhandled

      default boolean isUnhandled()
      Returns:
      true if not handled and false if so.
    • or

      default @NonNull EHandled or(@NonNull IHandledIndicator aOther)
      Logical OR of this handled indicator with another one.
      Parameters:
      aOther - The other handled indicator. May not be null.
      Returns:
      EHandled.HANDLED if either this or the other indicator is handled.
    • and

      default @NonNull EHandled and(@NonNull IHandledIndicator aOther)
      Logical AND of this handled indicator with another one.
      Parameters:
      aOther - The other handled indicator. May not be null.
      Returns:
      EHandled.HANDLED if both this and the other indicator are handled.