Interface InputLine.CharValidator

  • Enclosing class:
    InputLine
    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 InputLine.CharValidator
    Character validator interface.
    • Method Detail

      • validate

        boolean validate​(Char ch,
                         LinePrinter errorPrinter)
        Validate the given char.
        Parameters:
        ch - The char to validate.
        errorPrinter - Printer to print out error messages.
        Returns:
        True if valid, false otherwise.