-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add calendar 5.0 API support (#1167)
* Add calendar 5.0 API support * Formatting fixes * Additional formatting fixes * Final formatting fixes
- Loading branch information
1 parent
48e32cf
commit 2a3c11e
Showing
29 changed files
with
673 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 14 additions & 14 deletions
28
src/main/java/org/folio/circulation/AdjacentOpeningDays.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package org.folio.circulation; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import org.folio.circulation.domain.OpeningDay; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class AdjacentOpeningDays { | ||
|
||
private final OpeningDay previousDay; | ||
private final OpeningDay requestedDay; | ||
private final OpeningDay nextDay; | ||
|
||
public AdjacentOpeningDays(OpeningDay previousDay, OpeningDay requestedDay, OpeningDay nextDay) { | ||
this.previousDay = previousDay; | ||
this.requestedDay = requestedDay; | ||
this.nextDay = nextDay; | ||
public static AdjacentOpeningDays createClosedOpeningDays() { | ||
return new AdjacentOpeningDays( | ||
OpeningDay.createClosedDay(), | ||
OpeningDay.createClosedDay(), | ||
OpeningDay.createClosedDay() | ||
); | ||
} | ||
|
||
public OpeningDay getPreviousDay() { | ||
return previousDay; | ||
} | ||
|
||
public OpeningDay getRequestedDay() { | ||
return requestedDay; | ||
} | ||
|
||
public OpeningDay getNextDay() { | ||
return nextDay; | ||
public List<OpeningDay> toList() { | ||
return Arrays.asList(this.getPreviousDay(), this.getRequestedDay(), this.getNextDay()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.