Class ValidatorInstantBefore

    • Constructor Detail

      • ValidatorInstantBefore

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

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

      • isBefore

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