Interface InterfaceCheckerDate<T extends InterfaceCheckerDate<T,U>,U>

Type Parameters:
T - the type of the checker implementing this interface (for fluent API chaining)
U - the type of the date/time value being checked
All Known Implementing Classes:
CheckerDate, CheckerLocalDate, CheckerLocalDateTime, CheckerLocalTime

public interface InterfaceCheckerDate<T extends InterfaceCheckerDate<T,U>,U>
InterfaceCheckerDate defines a contract for date/time checker classes, providing common validation methods such as comparisons (before, after, in range) and temporal checks (past, future).
  • Method Summary

    Modifier and Type
    Method
    Description
    inRange(U date_1, U date_2)
    Checks if the value is within the specified range (exclusive).
    isAfter(U date)
    Checks if the value is after the specified date/time.
    Checks if the value is after or equal to the specified date/time.
    isBefore(U date)
    Checks if the value is before the specified date/time.
    Checks if the value is before or equal to the specified date/time.
    Checks if the value is in the future (after now).
    Checks if the value is in the past (before now).
  • Method Details

    • isBefore

      T isBefore(U date)
      Checks if the value is before the specified date/time.
      Parameters:
      date - the date/time to compare with
      Returns:
      this checker instance for chaining
    • isBeforeOrEqual

      T isBeforeOrEqual(U date)
      Checks if the value is before or equal to the specified date/time.
      Parameters:
      date - the date/time to compare with
      Returns:
      this checker instance for chaining
    • isAfter

      T isAfter(U date)
      Checks if the value is after the specified date/time.
      Parameters:
      date - the date/time to compare with
      Returns:
      this checker instance for chaining
    • isAfterOrEqual

      T isAfterOrEqual(U date)
      Checks if the value is after or equal to the specified date/time.
      Parameters:
      date - the date/time to compare with
      Returns:
      this checker instance for chaining
    • inRange

      T inRange(U date_1, U date_2)
      Checks if the value is within the specified range (exclusive).
      Parameters:
      date_1 - the start of the range (exclusive)
      date_2 - the end of the range (exclusive)
      Returns:
      this checker instance for chaining
    • isPast

      T isPast()
      Checks if the value is in the past (before now).
      Returns:
      this checker instance for chaining
    • isFuture

      T isFuture()
      Checks if the value is in the future (after now).
      Returns:
      this checker instance for chaining