public static class LocalDateTimeValidator.SameTimeOrAfter extends LocalDateTimeValidator
LocalDateTimeValidator.After, LocalDateTimeValidator.Before, LocalDateTimeValidator.SameTimeOrAfter, LocalDateTimeValidator.SameTimeOrBeforeref| Constructor and Description |
|---|
SameTimeOrAfter(LocalDateTime ref) |
| Modifier and Type | Method and Description |
|---|---|
String |
getTheValueMustDescription()
Get a description of the validation rule.
|
boolean |
isValidWithoutNull(LocalDateTime value)
Same as isValid, but no null checking is needed.
|
getInvalidSpecificationMessage, isSpecificationValidgetInvalidMessage, isValidpublic SameTimeOrAfter(LocalDateTime ref)
public boolean isValidWithoutNull(LocalDateTime value)
BaseValidatorisValidWithoutNull in class BaseValidator<LocalDateTime>value - The value, which is guaranteed to not be null.public String getTheValueMustDescription()
ValidatorAssume that the text returned is prefixed with 'The value must...'
As an example for a regex rule with the pattern 'ABC.*', the return could be: "match the regex pattern 'ABC.*'"
Copyright © 2022. All rights reserved.