![JAR search and dependency download from the Maven repository](/logo.png)
org.srplib.validation.StringMinLengthValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of srp-validation-support Show documentation
Show all versions of srp-validation-support Show documentation
Single Responsibility Principle (SRP) libraries collection
package org.srplib.validation;
/**
* Validates if string length is not less than specified value.
*
* @author Anton Pechinsky
*/
public class StringMinLengthValidator extends StringLengthValidator {
public StringMinLengthValidator(int minimum) {
super(minimum, Integer.MAX_VALUE);
}
protected ValidationError newError() {
return Validators.newError("String length should NOT be shorter than " + getMinimum());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy