public enum TrueFalseDefault extends Enum<TrueFalseDefault> implements Supplier<Optional<Boolean>>
| Modifier and Type | Method and Description |
|---|---|
Optional<Boolean> |
get() |
boolean |
orElse(boolean result) |
static TrueFalseDefault |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrueFalseDefault[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrueFalseDefault TRUE
public static final TrueFalseDefault FALSE
public static final TrueFalseDefault DEFAULT
public static TrueFalseDefault[] values()
for (TrueFalseDefault c : TrueFalseDefault.values()) System.out.println(c);
public static TrueFalseDefault 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 orElse(boolean result)
Copyright © 2016–2022. All rights reserved.