Skip to content

Commit

Permalink
ref: rename Timeline methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonajo committed Sep 9, 2024
1 parent 696df70 commit 6ed4681
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/appointmentplanner/api/LocalDayPlan.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ default List<AppointmentRequest> removeAppointments(Predicate<Appointment> filte
*
* @return all appointments
*/
default List<Appointment> getAppointments() {
default List<Appointment> appointments() {
return timeline().appointments();
}

Expand All @@ -149,7 +149,7 @@ default List<Appointment> getAppointments() {
* @return the list of gaps this and each of the other plans have in common
* with a minimum length of duration.
*/
default List<TimeSlot> getMatchingFreeSlotsOfDuration(Duration duration, List<LocalDayPlan> plans) {
default List<TimeSlot> findMatchingFreeSlotsOfDuration(Duration duration, List<LocalDayPlan> plans) {
return timeline().findMatchingFreeSlotsOfDuration(duration, plans.stream().map(LocalDayPlan::timeline).collect(toList()));
}

Expand All @@ -159,7 +159,7 @@ default List<TimeSlot> getMatchingFreeSlotsOfDuration(Duration duration, List<Lo
* @param duration the minimum duration that should fit
* @return list of timeslots that fit the duration
*/
default List<TimeSlot> getGapsFitting(Duration duration) {
default List<TimeSlot> findGapsFitting(Duration duration) {
return timeline().findGapsFitting(duration);
}

Expand All @@ -169,7 +169,7 @@ default List<TimeSlot> getGapsFitting(Duration duration) {
* @param duration the minimum duration that should fit
* @return list of timeslots that fit the duration
*/
default List<TimeSlot> getGapsFittingReversed(Duration duration) {
default List<TimeSlot> findGapsFittingReversed(Duration duration) {
return timeline().findGapsFittingReversed(duration);
}

Expand All @@ -179,7 +179,7 @@ default List<TimeSlot> getGapsFittingReversed(Duration duration) {
* @param duration the minimum duration
* @return list of gaps fitting the duration
*/
default List<TimeSlot> getGapsFittingLargestFirst(Duration duration) {
default List<TimeSlot> findGapsFittingLargestFirst(Duration duration) {
return timeline().findGapsFittingLargestFirst(duration);
}

Expand All @@ -189,7 +189,7 @@ default List<TimeSlot> getGapsFittingLargestFirst(Duration duration) {
* @param duration the minimum duration
* @return list of timeslots fitting the duration
*/
default List<TimeSlot> getGapsFittingSmallestFirst(Duration duration) {
default List<TimeSlot> findGapsFittingSmallestFirst(Duration duration) {
return timeline().findGapsFittingSmallestFirst(duration);
}

Expand Down

0 comments on commit 6ed4681

Please sign in to comment.