static enum DelpAnswer.Type extends java.lang.Enum<DelpAnswer.Type>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
text |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanAnswer() |
java.lang.Double |
getDoubleAnswer() |
java.lang.String |
toString() |
(package private) static DelpAnswer.Type |
typeForBoolean(boolean booleanAnswer) |
(package private) static DelpAnswer.Type |
typeForDouble(java.lang.Double doubleAnswer) |
static DelpAnswer.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DelpAnswer.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DelpAnswer.Type YES
public static final DelpAnswer.Type NO
public static final DelpAnswer.Type UNDECIDED
public static final DelpAnswer.Type UNKNOWN
public static DelpAnswer.Type[] values()
for (DelpAnswer.Type c : DelpAnswer.Type.values()) System.out.println(c);
public static DelpAnswer.Type 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 nullstatic DelpAnswer.Type typeForBoolean(boolean booleanAnswer)
static DelpAnswer.Type typeForDouble(java.lang.Double doubleAnswer)
public java.lang.String toString()
toString in class java.lang.Enum<DelpAnswer.Type>public boolean getBooleanAnswer()
public java.lang.Double getDoubleAnswer()