Class SelectInput.Option<T>

java.lang.Object
org.strassburger.tui4j.input.SelectInput.Option<T>
Enclosing class:
SelectInput<T>

public static class SelectInput.Option<T> extends Object
Represents a select option that can be selected by the user
  • Constructor Details

    • Option

      public Option(String label, T value)
      Creates a new select option
      Parameters:
      label - The label that will be displayed to the user
      value - The value that will be returned when the user selects this option
  • Method Details

    • getLabel

      public String getLabel()
    • getValue

      public T getValue()