public static enum EnumSource.Mode extends java.lang.Enum<EnumSource.Mode>
Enum Constant | 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 | Description |
---|---|---|
static EnumSource.Mode |
valueOf(java.lang.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.Stream.allMatch(java.util.function.Predicate)
public static final EnumSource.Mode MATCH_ANY
EnumSource.names()
attribute.Stream.anyMatch(java.util.function.Predicate)
public static EnumSource.Mode[] values()
for (EnumSource.Mode c : EnumSource.Mode.values()) System.out.println(c);
public static EnumSource.Mode 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