Package net.morimekta.console.terminal
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validate(java.lang.String line, LinePrinter errorPrinter)
Validate the full line.
-
-
-
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.
-
-