public enum ValidationPolicy extends Enum<ValidationPolicy>
Enum Constant and Description |
---|
ASSERT
If JVM assertions are enabled, throw an
AssertionError . |
THROW
Throw an
IllegalArgumentException . |
Modifier and Type | Method and Description |
---|---|
static ValidationPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValidationPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValidationPolicy THROW
IllegalArgumentException
.public static final ValidationPolicy ASSERT
AssertionError
.public static ValidationPolicy[] values()
for (ValidationPolicy c : ValidationPolicy.values()) System.out.println(c);
public static ValidationPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2022. All rights reserved.