-
- All Superinterfaces:
Prompt
- All Known Implementing Classes:
DefaultChoicePrompt
public interface ChoicePrompt extends Prompt
Interface for choice prompts. A choice prompt allows the user to select a single item from a list of choices, where each choice has a key associated with it.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<ChoiceItem>getItems()Get the list of choice items.-
Methods inherited from interface org.jline.prompt.Prompt
getFilter, getMessage, getName, getTransformer
-
-
-
-
Method Detail
-
getItems
java.util.List<ChoiceItem> getItems()
Get the list of choice items.- Returns:
- the list of choice items
-
-