public abstract class AbstractMultiChoicesHelper extends Object implements ChoicesHelper
ChoicesHelper
based on a map of choicesModifier and Type | Field and Description |
---|---|
protected SortedMap<String,String> |
choices |
Constructor and Description |
---|
AbstractMultiChoicesHelper() |
Modifier and Type | Method and Description |
---|---|
String |
getChoice(String key)
Every implementation should consider that invalid choices lead to null values
that will be simply handled in a while condition
|
SortedMap<String,String> |
getChoices() |
String |
getChoicesDisplaying() |
String |
getFullMessage() |
protected abstract String |
getQuestion() |
protected abstract void |
initialize() |
protected abstract void initialize()
public String getChoice(String key)
ChoicesHelper
getChoice
in interface ChoicesHelper
public String getChoicesDisplaying()
protected abstract String getQuestion()
public String getFullMessage()
getFullMessage
in interface ChoicesHelper
Copyright © 2017. All rights reserved.