public class Choice
extends java.lang.Object
Constructor and Description |
---|
Choice(@NotNull java.lang.String choiceName,
@NotNull java.lang.String choiceDescription,
@NotNull java.util.Map<java.lang.String,java.lang.String> choices)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
getChoiceDescription()
Returns the human-readable choice name.
|
@NotNull java.lang.String |
getChoiceName()
Returns the choice identification.
|
@NotNull java.util.Map<java.lang.String,java.lang.String> |
getChoices()
Returns the choices.
|
@NotNull java.lang.String |
toString() |
public Choice(@NotNull @NotNull java.lang.String choiceName, @NotNull @NotNull java.lang.String choiceDescription, @NotNull @NotNull java.util.Map<java.lang.String,java.lang.String> choices)
choiceName
- identifies the choicechoiceDescription
- the human-readable choice namechoices
- the choices@NotNull public @NotNull java.lang.String getChoiceName()
@NotNull public @NotNull java.lang.String getChoiceDescription()
@NotNull public @NotNull java.util.Map<java.lang.String,java.lang.String> getChoices()
@NotNull public @NotNull java.lang.String toString()
toString
in class java.lang.Object