Package com.helger.commons.state
Enum EContinue
- java.lang.Object
-
- java.lang.Enum<EContinue>
-
- com.helger.commons.state.EContinue
-
- All Implemented Interfaces:
IContinueIndicator,Serializable,Comparable<EContinue>
public enum EContinue extends Enum<EContinue> implements IContinueIndicator
Small enum for manager actions to indicate continue or break states.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisContinue()static EContinuevalueOf(boolean bContinue)Returns the enum constant of this type with the specified name.static EContinuevalueOf(IContinueIndicator aContinueIndicator)Returns the enum constant of this type with the specified name.static EContinuevalueOf(String name)Returns the enum constant of this type with the specified name.static EContinue[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface com.helger.commons.state.IContinueIndicator
and, isBreak, or
-
-
-
-
Method Detail
-
values
public static EContinue[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EContinue c : EContinue.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
isContinue
public boolean isContinue()
- Specified by:
isContinuein interfaceIContinueIndicator- Returns:
trueto continue andfalseto 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 nameNullPointerException- 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 nameNullPointerException- if the argument is null
-
-