Interface InputSelection.EntryPrinter<E>

  • Type Parameters:
    E - The entry type.
    Enclosing class:
    InputSelection<E>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface InputSelection.EntryPrinter<E>
    Interface for the entry printer.
    • Method Detail

      • print

        java.lang.String print​(E entry,
                               Color bgColor)
        Print the entry line.
        Parameters:
        entry - The entry to be printed.
        bgColor - The background color.
        Returns:
        The entry line.
      • print

        default java.lang.String print​(E entry)
        Print the entry line with default background.
        Parameters:
        entry - The entry to be printed.
        Returns:
        The entry line.