Class MinLengthValidator
java.lang.Object
games.stendhal.server.core.account.MinLengthValidator
- All Implemented Interfaces:
AccountParameterValidator
validates that the given parameter is provided has a minimum length.
- Author:
- hendrik
-
Constructor Summary
ConstructorsConstructorDescriptionMinLengthValidator(String parameterValue, int minLength) create a new MinLengthValidator. -
Method Summary
-
Constructor Details
-
MinLengthValidator
create a new MinLengthValidator.- Parameters:
parameterValue- value to validateminLength- minimum required length
-
-
Method Details
-
validate
Description copied from interface:AccountParameterValidatorvalidates a parameter provided for account creation.- Specified by:
validatein interfaceAccountParameterValidator- Returns:
nullin case the parameter is valid, or an error otherwise
-