Skip to content

Commit 56111e0

Browse files
committed
Move static variable to the top of the class and change wording.
1 parent 55f04e4 commit 56111e0

1 file changed

Lines changed: 9 additions & 11 deletions

File tree

application/src/main/java/org/opentripplanner/model/plan/paging/cursor/PageCursorFactory.java

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313

1414
public class PageCursorFactory {
1515

16+
/**
17+
* The search-window start and end is [inclusive, exclusive], so to calculate the start of the
18+
* search-window from the last time included in the search window we need to include one extra
19+
* minute at the end.
20+
* <p>
21+
* The value is set to a minute because raptor operates in one minute increments.
22+
*/
23+
private static final Duration SEARCH_WINDOW_END_EXCLUSIVITY_TIME_ADDITION = Duration.ofMinutes(1);
24+
1625
private final SortOrder sortOrder;
1726
private final Duration newSearchWindow;
1827
private PageType currentPageType;
@@ -27,17 +36,6 @@ public class PageCursorFactory {
2736
private PageCursor nextCursor = null;
2837
private PageCursor prevCursor = null;
2938

30-
/**
31-
* The search-window start and end is [inclusive, exclusive], so to calculate the start of the
32-
* search-window from the last time included in the search window we need to include one extra
33-
* minute at the end.
34-
* <p>
35-
* The value is set to 60 seconds because raptor operates in one minute increments.
36-
*/
37-
private static final Duration SEARCH_WINDOW_END_EXCLUSIVITY_TIME_ADDITION = Duration.ofSeconds(
38-
60
39-
);
40-
4139
public PageCursorFactory(SortOrder sortOrder, Duration newSearchWindow) {
4240
this.sortOrder = sortOrder;
4341
this.newSearchWindow = newSearchWindow;

0 commit comments

Comments
 (0)