FINERACT-2354: Re-aging: -Interest Handling Option: Equal amortization

This commit is contained in:
Soma Sörös
2025-11-21 15:02:34 +01:00
committed by Adam Saghy
parent 47e8674fa0
commit 747121bbe2
17 changed files with 3125 additions and 120 deletions
@@ -461,4 +461,17 @@ public final class DateUtils {
throw new PlatformApiDataValidationException("validation.msg.validation.errors.exist", "Validation errors exist.", errors, e);
}
}
/**
* Returns the earlier date. If date1 is before date2 it return date1 otherwise date2.
*
* @param date1
* non null date1
* @param date2
* non null date2
* @return earlier date
*/
public static LocalDate min(@NonNull LocalDate date1, @NonNull LocalDate date2) {
return date1.isBefore(date2) ? date1 : date2;
}
}