public enum YesNoMaybe extends Enum<YesNoMaybe>
Boolean
state (including null for the absence.)
This is for situations where we can't use Boolean
, such as annotation elements.
Modifier and Type | Method and Description |
---|---|
Boolean |
toBool() |
static Boolean |
toBoolean(YesNoMaybe v) |
static YesNoMaybe |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YesNoMaybe[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YesNoMaybe YES
public static final YesNoMaybe NO
public static final YesNoMaybe MAYBE
public static YesNoMaybe[] values()
for (YesNoMaybe c : YesNoMaybe.values()) System.out.println(c);
public static YesNoMaybe 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 static Boolean toBoolean(YesNoMaybe v)
public Boolean toBool()
Copyright © 2004–2022. All rights reserved.