Package nz.org.riskscape.wizard.survey2
Class Choices
java.lang.Object
nz.org.riskscape.wizard.survey2.Choices
- All Implemented Interfaces:
BackingData
Backing data for a set of choices. The UI should/can offer these choices to the user when asking this question.
-
Nested Class Summary
Nested classes/interfaces inherited from interface nz.org.riskscape.wizard.survey2.BackingData
BackingData.Empty
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.wizard.survey2.BackingData
isA, isEmpty
-
Constructor Details
-
Choices
-
-
Method Details
-
getAll
- Returns:
- a list of all the choices in this choices option, casting the values to
asType
- note that asType must be the same or a super type of the BackingData's parameterType
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
getParameterType
- Specified by:
getParameterType
in interfaceBackingData
- Returns:
- the class which corresponds to
Question.getParameterType()
this backing data. Mostly used for assertions and type safety checks in generic code.
-
getChoices
-