Class LegalTermCalculator

java.lang.Object
org.episteme.social.law.LegalTermCalculator

public final class LegalTermCalculator extends Object
Provides utility methods for calculating legal terms, deadlines, and statutes of limitations.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Method Details

    • calculateStatuteOfLimitations

      public static LocalDate calculateStatuteOfLimitations(LocalDate startDate, int years)
      Calculates the expiry date for a legal action based on a start date and a duration in years.
      Parameters:
      startDate - the date the limitation period begins
      years - the number of years in the limitation period
      Returns:
      the expiry date, or null if startDate is null
    • isTimeBarred

      public static boolean isTimeBarred(LocalDate actionDate, LocalDate expiryDate)
      Checks if a legal action taken on a specific date is time-barred according to an expiry date.
      Parameters:
      actionDate - the date the action was taken
      expiryDate - the expiry date of the limitation period
      Returns:
      true if the action is after the expiry date, false otherwise