public static enum ConfigValueResolver.ElementPolicy extends Enum<ConfigValueResolver.ElementPolicy>
| Enum Constant and Description |
|---|
FAIL
Element conversion failure immediately fails overall array conversion.
|
NULL
Element conversion failure sets null for failing elements in the result array.
|
SKIP
Element conversion failure skips the failing element in the result array unless all elements fail which also
fails overall conversion.
|
| Modifier and Type | Method and Description |
|---|---|
static ConfigValueResolver.ElementPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigValueResolver.ElementPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigValueResolver.ElementPolicy FAIL
ConfigValueResolver.throwOnFailedConversion() is used as well.public static final ConfigValueResolver.ElementPolicy SKIP
public static final ConfigValueResolver.ElementPolicy NULL
public static ConfigValueResolver.ElementPolicy[] values()
for (ConfigValueResolver.ElementPolicy c : ConfigValueResolver.ElementPolicy.values()) System.out.println(c);
public static ConfigValueResolver.ElementPolicy 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 © 2020. All rights reserved.