Interface ListOption<T>

  • Type Parameters:
    T - The type of each item. Be careful, the printed type is always String, by default it is displayed with the toString() function.

    public interface ListOption<T>
    Nests options into a List. For each item, getOption(T item) will return the option associated with the item.
    • Method Detail

      • getOption

        Option getOption​(T item)
        Returns the option binded to an item of the list.
        Parameters:
        item - The element that will be shown in the list.
        Returns:
        The sub-menu that will be opened if item is selected.