public enum InvalidCastBehaviour extends java.lang.Enum<InvalidCastBehaviour>
Enum Constant and Description |
---|
Remove
Objects that are not cast successfully are removed
|
Throw
A ClassCastException is thrown
|
UseDefault
A default value (i.e.
|
Modifier and Type | Method and Description |
---|---|
static InvalidCastBehaviour |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InvalidCastBehaviour[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvalidCastBehaviour UseDefault
public static final InvalidCastBehaviour Remove
public static final InvalidCastBehaviour Throw
public static InvalidCastBehaviour[] values()
for (InvalidCastBehaviour c : InvalidCastBehaviour.values()) System.out.println(c);
public static InvalidCastBehaviour 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