Skip to content

Commit

Permalink
[incubator-kie-issues#1612] Separating different concerns in differen…
Browse files Browse the repository at this point in the history
…t classes: CalendarBean is responsible of calendar.properties file. BusinessCalendarImpl is responsible of working time evaluation
  • Loading branch information
Gabriele-Cardosi committed Nov 22, 2024
1 parent bd71ddc commit bb9f787
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 330 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public interface BusinessCalendar {
* @param timeExpression time expression that is supported by business calendar implementation.
* @return duration expressed in milliseconds
*/
public long calculateBusinessTimeAsDuration(String timeExpression);
long calculateBusinessTimeAsDuration(String timeExpression);

/**
* Calculates given time expression into target date based on calendar configuration.
*
* @param timeExpression time expression that is supported by business calendar implementation.
* @return date when given time expression will match in the future
*/
public Date calculateBusinessTimeAsDate(String timeExpression);
Date calculateBusinessTimeAsDate(String timeExpression);
}
Loading

0 comments on commit bb9f787

Please sign in to comment.