Enum Constant and Description |
---|
DO_NOTHING
Doesn't even generate a log message.
|
LOG_ERROR_AND_RETURN_NULL_NEG_ONE_OR_FALSE
Indicates that null should be returned if the method is called from an incorrect version.
|
LOG_ERROR_ONLY
Behavior to indicate the method handles enforcing the constraint, but a log message should be written
|
THROW_EXCEPTION
Indicates that an exception should be thrown if the method is called from an incorrect version
|
Modifier and Type | Method and Description |
---|---|
static Behavior |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Behavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Behavior DO_NOTHING
public static final Behavior LOG_ERROR_ONLY
public static final Behavior THROW_EXCEPTION
public static final Behavior LOG_ERROR_AND_RETURN_NULL_NEG_ONE_OR_FALSE
public static Behavior[] values()
for (Behavior c : Behavior.values()) System.out.println(c);
public static Behavior valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null