Modifier and Type | Field and Description |
---|---|
static String |
CHOICE_OR_OTHER_INVALID_ENUM_ERR_ID |
static String |
CHOICE_OR_OTHER_INVALID_ENUM_MSG |
static String |
OTHER_ENUM_VALUE |
Constructor and Description |
---|
ChoiceOrOther() |
ChoiceOrOther(E choice,
String other)
Instantiates a new Choice or other.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
E |
getChoice() |
String |
getOther() |
String |
getResult() |
int |
hashCode() |
void |
resolveEnum(Class<E> enumClass)
Resolve enum.
|
void |
setChoice(E choice) |
void |
setOther(String other) |
void |
setResult(String result)
Sets result.
|
public static final String CHOICE_OR_OTHER_INVALID_ENUM_ERR_ID
public static final String CHOICE_OR_OTHER_INVALID_ENUM_MSG
public static final String OTHER_ENUM_VALUE
public E getChoice()
public void setChoice(E choice)
public String getOther()
public void setOther(String other)
public String getResult()
public void setResult(String result)
result
- the resultpublic void resolveEnum(Class<E> enumClass)
enumClass
- the enum classCopyright © 2017. All rights reserved.