212223242526272829
this.errorMessage = errorMessage; } public ValidationResult validate(Integer value) { if (value == null || value <= max) { return new ValidationResult(ValidationMessages.Instance.get().notNull()); } return new ValidationResult(errorMessage); }