Enum Class EHandled

java.lang.Object
java.lang.Enum<EHandled>
com.helger.base.state.EHandled
All Implemented Interfaces:
IHandledIndicator, Serializable, Comparable<EHandled>, Constable

public enum EHandled extends Enum<EHandled> implements IHandledIndicator
Small enum to identify whether something was handled or not.
Since:
9.0.0
Author:
Philip Helger
  • Enum Constant Details

    • HANDLED

      public static final EHandled HANDLED
    • UNHANDLED

      public static final EHandled UNHANDLED
  • Method Details

    • values

      public static EHandled[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EHandled valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isHandled

      public boolean isHandled()
      Specified by:
      isHandled in interface IHandledIndicator
      Returns:
      true if handled and false if not.
    • valueOf

      public static @NonNull EHandled valueOf(boolean bHandleded)
      Convert a boolean value to the corresponding EHandled enum value.
      Parameters:
      bHandleded - true for HANDLED, false for UNHANDLED.
      Returns:
      Never null.
    • valueOf

      public static @NonNull EHandled valueOf(@NonNull IHandledIndicator aHandledIndicator)
      Convert an IHandledIndicator to the corresponding EHandled enum value.
      Parameters:
      aHandledIndicator - The handled indicator to convert. May not be null.
      Returns:
      Never null.