Class DateCalculator
java.lang.Object
de.gematik.test.erezept.fhir.date.DateCalculator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanequalDates(Date expectation, Date actual) This method compares dates independent of the actual timegetDateAfterCalendarDays(LocalDate base, int calendarDays) getDateAfterCalendarDays(Date base, int calendarDays) getDateAfterMonths(Date base, int months) getDateAfterWorkingDays(LocalDate base, int workingDays) getDateAfterWorkingDays(Date base, int workingDays) booleanisAfterToday(LocalDate date) booleanisAfterToday(Date date) booleanisBeforeToday(LocalDate date) booleanisBeforeToday(Date date) booleanisOnHoliday(Date date) booleanboolean
-
Constructor Details
-
DateCalculator
public DateCalculator()
-
-
Method Details
-
getDateAfterCalendarDays
-
getDateAfterCalendarDays
-
getDateAfterWorkingDays
-
getDateAfterWorkingDays
-
getDateAfterMonths
-
isOnHoliday
-
equalDates
This method compares dates independent of the actual time- Parameters:
expectation- of the dateactual- date- Returns:
- true if dates are equal
-
isToday
-
isToday
-
isBeforeToday
-
isBeforeToday
-
isAfterToday
-
isAfterToday
-