Enum Class EContinue

java.lang.Object
java.lang.Enum<EContinue>
com.helger.base.state.EContinue
All Implemented Interfaces:
IContinueIndicator, Serializable, Comparable<EContinue>, 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 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 EContinue 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
    • isContinue

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

      public static @NonNull EContinue valueOf(boolean bContinue)
      Convert a boolean value to the corresponding EContinue enum value.
      Parameters:
      bContinue - true for CONTINUE, false for BREAK.
      Returns:
      Never null.
    • valueOf

      public static @NonNull EContinue valueOf(@NonNull IContinueIndicator aContinueIndicator)
      Convert an IContinueIndicator to the corresponding EContinue enum value.
      Parameters:
      aContinueIndicator - The continue indicator to convert. May not be null.
      Returns:
      Never null.