Class ValidatorTemporalPast<V>

    • Constructor Detail

      • ValidatorTemporalPast

        public ValidatorTemporalPast()
        The constructor.
    • Method Detail

      • validateNotNull

        protected NlsMessage validateNotNull​(V value)
        Description copied from class: AbstractValueValidator
        This method performs the validation in case value is NOT null. This method contains the actual custom logic for the validation. It is therefore designed in a way that makes it most simple to implement custom validators.
        Specified by:
        validateNotNull in class AbstractValueValidator<V>
        Parameters:
        value - the value to validate.
        Returns:
        the failure message or null if the the given value is valid.
      • isPast

        protected abstract boolean isPast​(V value)
        Parameters:
        value - the date to check.
        Returns:
        true if in future, false otherwise.