Enum EContinue

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

public enum EContinue extends Enum<EContinue> implements IContinueIndicator
Small enum for manager actions to indicate continue or break states.
Author:
Philip Helger
  • Enum Constant Details

    • CONTINUE

      public static final EContinue CONTINUE
    • BREAK

      public static final EContinue BREAK
  • Method Details

    • values

      public static EContinue[] 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 EContinue 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
    • isContinue

      public boolean isContinue()
      Specified by:
      isContinue in interface IContinueIndicator
      Returns:
      true to continue and false to break.
    • valueOf

      @Nonnull public static EContinue valueOf(boolean bContinue)
      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:
      bContinue - 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 EContinue valueOf(@Nonnull IContinueIndicator aContinueIndicator)
      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:
      aContinueIndicator - 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