Class LegalTermCalculator
java.lang.Object
org.episteme.social.law.LegalTermCalculator
Provides utility methods for calculating legal terms, deadlines, and statutes of limitations.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDatecalculateStatuteOfLimitations(LocalDate startDate, int years) Calculates the expiry date for a legal action based on a start date and a duration in years.static booleanisTimeBarred(LocalDate actionDate, LocalDate expiryDate) Checks if a legal action taken on a specific date is time-barred according to an expiry date.
-
Method Details
-
calculateStatuteOfLimitations
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 beginsyears- the number of years in the limitation period- Returns:
- the expiry date, or null if startDate is null
-
isTimeBarred
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 takenexpiryDate- the expiry date of the limitation period- Returns:
- true if the action is after the expiry date, false otherwise
-