Class CheckerLocalDate

java.lang.Object
com.luchersol.core.util.AbstractChecker<LocalDate,CheckerLocalDate>
com.luchersol.core.specialized_checkers.time.temporal.CheckerLocalDate
All Implemented Interfaces:
InterfaceCheckerDate<CheckerLocalDate,LocalDate>, InterfaceChecker<AbstractChecker<LocalDate,CheckerLocalDate>,LocalDate>

A specialized checker for LocalDate instances, providing fluent API methods to assert temporal properties such as being before/after another date, inclusivity checks, range validations, and whether a date lies in the past, future, or present.

Typical usage:


 LocalDate today = LocalDate.now();
 LocalDate tomorrow = today.plusDays(1);

 CheckerLocalDate checker = CheckerLocalDate.check(today)
     .isBeforeOrEqual(tomorrow)
     .isPastOrPresent()
     .isFutureOrPresent();
 

This class integrates with InterfaceCheckerDate for standardized temporal validations and supports chaining multiple assertions in a fluent, expressive style.

See Also:
  • Constructor Details

    • CheckerLocalDate

      protected CheckerLocalDate(LocalDate localdate, String name)
      Constructs a new CheckerLocalDate with the specified localdate and name.
      Parameters:
      localdate - the LocalDate to be wrapped and checked
      name - the name identifying this checker function
  • Method Details