Class ValidatorInstantAfter

All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>, Validator<Instant>, Iterable<Validator<?>>

public class ValidatorInstantAfter extends ValidatorTemporalAfter<Instant>
Implementation of ValidatorTemporalAfter for Instant.
Since:
1.0.0
  • Constructor Details

    • 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 Details

    • 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.