Interface ChoiceItem

All Superinterfaces:
PromptItem
All Known Implementing Classes:
DefaultChoiceItem

public interface ChoiceItem extends PromptItem
Interface for choice items in the Prompter.
  • Method Details

    • isDefaultChoice

      default boolean isDefaultChoice()
      Whether this choice is the default choice.
      Returns:
      true if this choice is the default
    • getKey

      default Character getKey()
      Get the key associated with this choice.
      Returns:
      the key