Enum EInterrupt

java.lang.Object
java.lang.Enum<EInterrupt>
com.helger.commons.state.EInterrupt
All Implemented Interfaces:
IInterruptIndicator, Serializable, Comparable<EInterrupt>, java.lang.constant.Constable

public enum EInterrupt extends Enum<EInterrupt> implements IInterruptIndicator
Small enum for setter method to identify whether a value has changed or not.
Author:
Philip Helger
  • Enum Constant Details

    • INTERRUPTED

      public static final EInterrupt INTERRUPTED
    • NOT_INTERRUPTED

      public static final EInterrupt NOT_INTERRUPTED
  • Method Details

    • values

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

      public static EInterrupt valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • isInterrupted

      public boolean isInterrupted()
      Specified by:
      isInterrupted in interface IInterruptIndicator
      Returns:
      true if interrupted and false if not.
    • valueOf

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

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