Class QuestionFormat<TOption>
- java.lang.Object
-
- com.github.rvesse.airline.prompts.formatters.QuestionFormat<TOption>
-
- Type Parameters:
TOption
- Option type
- All Implemented Interfaces:
PromptFormatter
public class QuestionFormat<TOption> extends Object implements PromptFormatter
Prompt format for simple questions with either a free-form response or with a limited number of options
-
-
Constructor Summary
Constructors Constructor Description QuestionFormat()
Creates a new question format with default columnsQuestionFormat(int columns)
Creates a new question format with the specified columns
-
-
-
Method Detail
-
displayPrompt
public <T> void displayPrompt(Prompt<T> prompt)
Description copied from interface:PromptFormatter
Displays the prompt- Specified by:
displayPrompt
in interfacePromptFormatter
- Type Parameters:
T
- Option type- Parameters:
prompt
- Prompt
-
-