public static enum EnumSource.Mode extends Enum<EnumSource.Mode>
Enum Constant and Description |
---|
EXCLUDE
Select all declared enum constants except those supplied via the
EnumSource.names() attribute. |
INCLUDE
Select only those enum constants whose names are supplied via the
EnumSource.names() attribute. |
MATCH_ALL
Select only those enum constants whose names match all patterns supplied
via the
EnumSource.names() attribute. |
MATCH_ANY
Select only those enum constants whose names match any pattern supplied
via the
EnumSource.names() attribute. |
Modifier and Type | Method and Description |
---|---|
static EnumSource.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumSource.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumSource.Mode INCLUDE
EnumSource.names()
attribute.public static final EnumSource.Mode EXCLUDE
EnumSource.names()
attribute.public static final EnumSource.Mode MATCH_ALL
EnumSource.names()
attribute.public static final EnumSource.Mode MATCH_ANY
EnumSource.names()
attribute.public static EnumSource.Mode[] values()
for (EnumSource.Mode c : EnumSource.Mode.values()) System.out.println(c);
public static EnumSource.Mode 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 null