Modifier and Type | Field and Description |
---|---|
static String |
MULTI_CHOICE_OR_OTHER_INVALID_ENUM_ERR_ID |
static String |
MULTI_CHOICE_OR_OTHER_INVALID_ENUM_MSG |
static String |
OTHER_ENUM_VALUE |
Constructor and Description |
---|
MultiChoiceOrOther() |
MultiChoiceOrOther(Set<E> choices,
String other)
Instantiates a new Multi choice or other.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Set<E> |
getChoices() |
String |
getOther() |
Set<String> |
getResults() |
int |
hashCode() |
void |
resolveEnum(Class<E> enumClass)
Resolve enum.
|
void |
setChoices(Set<E> choices) |
void |
setOther(String other) |
void |
setResults(Set<String> results)
Sets results.
|
public static final String MULTI_CHOICE_OR_OTHER_INVALID_ENUM_ERR_ID
public static final String MULTI_CHOICE_OR_OTHER_INVALID_ENUM_MSG
public static final String OTHER_ENUM_VALUE
public String getOther()
public void setOther(String other)
public void setResults(Set<String> results)
results
- the resultspublic void resolveEnum(Class<E> enumClass)
enumClass
- the enum classCopyright © 2017. All rights reserved.