Package com.example.common.input
Class InputIp
This class represents an input for IP addresses.
It provides functionality for input validation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ValidatorInterface
getValidator
(String text) Returns the validator for the given IP address.getValue()
Returns the validated IP address value.Methods inherited from class com.example.common.input.Input
getInputValue, getValueAfterValidation
-
Constructor Details
-
InputIp
public InputIp()
-
-
Method Details
-
getValidator
Returns the validator for the given IP address.- Specified by:
getValidator
in classInput<String>
- Parameters:
text
- The IP address to be validated- Returns:
- The IP validator
-
getValue
Returns the validated IP address value.
-