Package net.morimekta.console.terminal
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
validate(Char ch, LinePrinter errorPrinter)
Validate the given char.
-
-
-
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.
-
-