Interface InputLine.LineValidator

  • 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.LineValidator
    Line validator interface.
    • Method Detail

      • validate

        boolean validate​(java.lang.String line,
                         LinePrinter errorPrinter)
        Validate the full line.
        Parameters:
        line - The line to validate.
        errorPrinter - Printer to print out error messages.
        Returns:
        True if valid, false otherwise.