Package liquibase.ui
Interface InputHandler<ReturnType>
- All Known Implementing Classes:
DefaultInputHandler
public interface InputHandler<ReturnType>
-
Method Summary
Modifier and TypeMethodDescriptionparseInput
(String input, Class<ReturnType> returnType) Converts the given input into the correct return type.default boolean
Determine whether an empty input should be permitted.
-
Method Details
-
parseInput
Converts the given input into the correct return type.- Throws:
IllegalArgumentException
- if the input is not valid
-
shouldAllowEmptyInput
default boolean shouldAllowEmptyInput()Determine whether an empty input should be permitted.- Returns:
- true to allow empty inputs, false to reprompt when an empty value is inputted
-