class StackNameLengthValidator implements ConstraintValidator<ValidStackNameLength, String> {

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        return Range.between(MIN_LENGTH, MAX_LENGTH).contains(value.length());
    }

}