public enum AlwaysTrueBooleanSupplier extends Enum<AlwaysTrueBooleanSupplier> implements BooleanSupplier
BooleanSupplier
implementation that is always true.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
getAsBoolean() |
static AlwaysTrueBooleanSupplier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlwaysTrueBooleanSupplier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlwaysTrueBooleanSupplier INSTANCE
public static AlwaysTrueBooleanSupplier[] values()
for (AlwaysTrueBooleanSupplier c : AlwaysTrueBooleanSupplier.values()) System.out.println(c);
public static AlwaysTrueBooleanSupplier 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 nullpublic boolean getAsBoolean() throws Exception
getAsBoolean
in interface BooleanSupplier
Exception