Interface Validatable

    • Method Detail

      • validate

        default java.util.Optional<ValidationException> validate()
        Perform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. A ValidationException that is not null is assumed to contain validation errors and will be thrown.
        Returns:
        An Optional ValidationException that contains a list of validation errors.