Class ValidatorInstantAfter

    • Constructor Detail

      • ValidatorInstantAfter

        public ValidatorInstantAfter​(Supplier<Instant> valueSource)
        The constructor.
        Parameters:
        valueSource - the Supplier of the value to compare to.
      • ValidatorInstantAfter

        public ValidatorInstantAfter​(Instant value)
        The constructor.
        Parameters:
        value - the value to compare to.
    • Method Detail

      • isAfter

        protected boolean isAfter​(Instant value,
                                  Instant limit)
        Specified by:
        isAfter in class ValidatorTemporalAfter<Instant>
        Parameters:
        value - the date to check.
        limit - the upper bound to compare to.
        Returns:
        true if value is after limit, false otherwise.