public class FutureDateValidator extends AbstractDateValidator implements AttributeValidator
Is capable of validating Date
s.
Modifier and Type | Method and Description |
---|---|
static FutureDateValidator |
getInstance() |
Optional<AttributeValidationReport> |
validate(Attribute attribute)
Validates a single
Attribute . |
validate
public static FutureDateValidator getInstance()
public Optional<AttributeValidationReport> validate(Attribute attribute)
validate
in interface AttributeValidator
attribute
- the Attribute
to validate, cannot be nullOptional
containing an AttributeValidationReport
if there are
violations, or an empty Optional
if there are no violationsThis work is licensed under a Creative Commons Attribution 4.0 International License.