All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.srplib.validation.StringMinLengthValidator Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
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