Index
All Classes and Interfaces|All Packages
A
- AbstractAPFactory - Interface in appointmentplanner.api
-
This is the interface that the user (the teachers) of your implementation use to obtain instances of the classes implementing the given other interfaces.
- addAppointment(AppointmentData, TimePreference) - Method in interface appointmentplanner.api.LocalDayPlan
-
Add and appointment with time preference.
- addAppointment(AppointmentData, LocalTime) - Method in interface appointmentplanner.api.LocalDayPlan
-
Add and appointment with fix start time.
- addAppointment(AppointmentData, LocalTime, TimePreference) - Method in interface appointmentplanner.api.LocalDayPlan
-
Add an appointment with start time and fallback time preference.
- addAppointment(LocalDay, AppointmentData, TimePreference) - Method in interface appointmentplanner.api.Timeline
-
Add a new appointment to this day.
- addAppointment(LocalDay, AppointmentData, LocalTime) - Method in interface appointmentplanner.api.Timeline
-
Add appointment with a fixed time.
- addAppointment(LocalDay, AppointmentData, LocalTime, TimePreference) - Method in interface appointmentplanner.api.Timeline
-
Add appointment with a fixed time.
- addAppointment(LocalDay, AppointmentRequest) - Method in interface appointmentplanner.api.Timeline
-
Create an appointment based on previous appointmentRequest.
- appointmenplanner.api - module appointmenplanner.api
-
The main appointment planner module
- Appointment - Interface in appointmentplanner.api
-
Appointment that is scheduled using the appointment planner.
- appointmentData() - Method in interface appointmentplanner.api.AppointmentRequest
-
Get the appointment details of this appointment.
- AppointmentData - Interface in appointmentplanner.api
-
Details of an Appointment or AppointmentRequest.
- appointmentplanner.api - package appointmentplanner.api
-
Library to facilitate planning of appointments.
- AppointmentRequest - Interface in appointmentplanner.api
-
Class holding the full details of an appointment request.
- appointments() - Method in interface appointmentplanner.api.LocalDayPlan
- appointments() - Method in interface appointmentplanner.api.Timeline
-
Finds all appointments for this TimeLine.
- appointmentStream() - Method in interface appointmentplanner.api.Timeline
-
Stream of all appointments.
- at(int, int) - Method in record class appointmentplanner.api.LocalDay
-
Get the instant at the given hours and minutes.
- at(int, int) - Method in interface appointmentplanner.api.LocalDayPlan
-
Get the instant at the given hour and minute of this local day plan.
B
- between(LocalDay, LocalTime, LocalTime) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Compute time slot on a date between given start- and endTime.
- between(Instant, Instant) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Create a time slot between two times.
C
- canAddAppointmentOfDuration(Duration) - Method in interface appointmentplanner.api.LocalDayPlan
- canAddAppointmentOfDuration(Duration) - Method in interface appointmentplanner.api.Timeline
-
Check if an appointment of the given duration can be scheduled.
- compareTo(TimeSlot) - Method in interface appointmentplanner.api.TimeSlot
-
Compare two time slots by length.
- contains(Appointment) - Method in interface appointmentplanner.api.LocalDayPlan
- contains(Appointment) - Method in interface appointmentplanner.api.Timeline
-
Check if day contains the given appointment.
- createAppointmentData(String, Duration) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Factory method to create an AppointmentData object without specified startTime.
- createAppointmentRequest(AppointmentData, TimePreference) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Create a request with time preference.
- createAppointmentRequest(AppointmentData, LocalTime) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Create an appointmentRequest with a required start time.
- createAppointmentRequest(AppointmentData, LocalTime, TimePreference) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Create a request with a preferred start time and a fallback time preference.
- createLocalDayPlan(LocalDay, Instant, Instant) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Factory method to create a day plan instance.
- createLocalDayPlan(LocalDay, LocalTime, LocalTime) - Method in interface appointmentplanner.api.AbstractAPFactory
-
Factory method to create a day plan instance.
D
- date() - Method in record class appointmentplanner.api.LocalDay
-
Returns the value of the
date
record component. - date() - Method in interface appointmentplanner.api.LocalDayPlan
-
What is the (start) date of this plan.
- dateOfInstant(Instant) - Method in record class appointmentplanner.api.LocalDay
-
Get the LocalDate of an instant according to this timezone.
- day() - Method in interface appointmentplanner.api.LocalDayPlan
-
LocalDay specifies date and time zone.
- description() - Method in interface appointmentplanner.api.AppointmentData
-
The description of the appointment.
- duration() - Method in interface appointmentplanner.api.AppointmentData
-
The duration of this appointment data.
- duration() - Method in interface appointmentplanner.api.AppointmentRequest
-
Get the duration of the appointment request.
- duration() - Method in interface appointmentplanner.api.TimeSlot
-
Get the duration of this slot.
E
- EARLIEST - Enum constant in enum class appointmentplanner.api.TimePreference
-
Plan the appointment as early as possible on a day.
- EARLIEST_AFTER - Enum constant in enum class appointmentplanner.api.TimePreference
-
Plan as early as possible after a given time.
- end() - Method in interface appointmentplanner.api.Timeline
-
Get the end of this timeline.
- end() - Method in interface appointmentplanner.api.TimeSlot
-
Get the end of the TimeSlot.
- endDate(LocalDay) - Method in interface appointmentplanner.api.TimeSlot
-
Return the date of the end of the TimeSlot.
- endOfDay() - Method in interface appointmentplanner.api.LocalDayPlan
-
End time of the day, exclusive.
- endTime() - Method in interface appointmentplanner.api.LocalDayPlan
-
Get the allowed latest time for this day.
- endTime(LocalDay) - Method in interface appointmentplanner.api.TimeSlot
-
Get End Time of the appointment in the given time zone.
- equals(Object) - Method in record class appointmentplanner.api.LocalDay
-
Indicates whether some other object is "equal to" this one.
F
- findAppointments(Predicate<Appointment>) - Method in interface appointmentplanner.api.LocalDayPlan
- findAppointments(Predicate<Appointment>) - Method in interface appointmentplanner.api.Timeline
-
Finds all appointments matching given filter.
- findGapsFitting(Duration) - Method in interface appointmentplanner.api.LocalDayPlan
- findGapsFitting(Duration) - Method in interface appointmentplanner.api.Timeline
-
This method finds all time gaps that can accommodate an appointment of the given duration in natural order.
- findGapsFittingLargestFirst(Duration) - Method in interface appointmentplanner.api.LocalDayPlan
- findGapsFittingLargestFirst(Duration) - Method in interface appointmentplanner.api.Timeline
-
Get the gaps matching the given duration, largest fitting first.
- findGapsFittingReversed(Duration) - Method in interface appointmentplanner.api.LocalDayPlan
- findGapsFittingReversed(Duration) - Method in interface appointmentplanner.api.Timeline
-
This method finds all time gaps that can accommodate an appointment of the given duration in last to first order.
- findGapsFittingSmallestFirst(Duration) - Method in interface appointmentplanner.api.LocalDayPlan
- findGapsFittingSmallestFirst(Duration) - Method in interface appointmentplanner.api.Timeline
-
Get the gaps matching the given duration, smallest fitting first.
- findMatchingFreeSlotsOfDuration(Duration, List<LocalDayPlan>) - Method in interface appointmentplanner.api.LocalDayPlan
- findMatchingFreeSlotsOfDuration(Duration, List<Timeline>) - Method in interface appointmentplanner.api.Timeline
-
Find matching free time slots in this and other TimeLines.
- fits(TimeSlot) - Method in interface appointmentplanner.api.TimeSlot
-
Does the given time slot fit inside this time slot.
- fits(Duration) - Method in interface appointmentplanner.api.TimeSlot
-
Is this time slot sufficient to accommodate a specified duration.
H
- hashCode() - Method in record class appointmentplanner.api.LocalDay
-
Returns a hash code value for this object.
L
- LATEST - Enum constant in enum class appointmentplanner.api.TimePreference
-
Plan as late as possible on a day.
- LATEST_BEFORE - Enum constant in enum class appointmentplanner.api.TimePreference
-
Plan as late as possible before a given time.
- LocalDay - Record Class in appointmentplanner.api
-
Utility class to do zoned time conversion.
- LocalDay() - Constructor for record class appointmentplanner.api.LocalDay
-
Create a LocalDay based on the system default timezone and the current date.
- LocalDay(ZoneId, LocalDate) - Constructor for record class appointmentplanner.api.LocalDay
-
Default constructor.
- LocalDayPlan - Interface in appointmentplanner.api
-
Timezone and day based view on timeline.
N
- now() - Static method in record class appointmentplanner.api.LocalDay
-
Return the LocalDay for the default time zone at the current date.
- nrOfAppointments() - Method in interface appointmentplanner.api.LocalDayPlan
- nrOfAppointments() - Method in interface appointmentplanner.api.Timeline
-
Returns the number of appointments on a day.
- nrOfGaps() - Method in interface appointmentplanner.api.Timeline
-
Get the number of gaps between start and en of day and between the appointments.
O
- ofLocalTime(LocalTime) - Method in record class appointmentplanner.api.LocalDay
-
Get the time as instant.
P
- plusDays(int) - Method in record class appointmentplanner.api.LocalDay
-
Add x numbers of days to this LocalDay.
R
- removeAppointment(Appointment) - Method in interface appointmentplanner.api.LocalDayPlan
- removeAppointment(Appointment) - Method in interface appointmentplanner.api.Timeline
-
Removes the given appointment, returning the AppointmentRequest of that appointment, if found.
- removeAppointments(Predicate<Appointment>) - Method in interface appointmentplanner.api.LocalDayPlan
- removeAppointments(Predicate<Appointment>) - Method in interface appointmentplanner.api.Timeline
-
Removes appointments with description that matches a filter.
- request() - Method in interface appointmentplanner.api.Appointment
-
Get the request that led to this appointment.
S
- start() - Method in interface appointmentplanner.api.Timeline
-
Get the start of this timeline as instant.
- start() - Method in interface appointmentplanner.api.TimeSlot
-
Get the start of the TimeSlot.
- start(LocalDay) - Method in interface appointmentplanner.api.AppointmentRequest
-
Get the start time of the intended appointment.
- startDate(LocalDay) - Method in interface appointmentplanner.api.TimeSlot
-
Return the date of the start of the TimeSlot.
- startOfDay() - Method in interface appointmentplanner.api.LocalDayPlan
-
Start time of the day, inclusive.
- startTime() - Method in interface appointmentplanner.api.AppointmentRequest
-
Get the requested local start time.
- startTime() - Method in interface appointmentplanner.api.LocalDayPlan
-
Get the allowed first time for this day.
- startTime(LocalDay) - Method in interface appointmentplanner.api.TimeSlot
-
Get Start Time of the appointment in given time zone.
T
- timeline() - Method in interface appointmentplanner.api.LocalDayPlan
-
Get the timeline used by this LocalDayPlan.
- Timeline - Interface in appointmentplanner.api
-
Timeline of planned appointments.
- timeOfInstant(Instant) - Method in record class appointmentplanner.api.LocalDay
-
Get the LocalTime of an instant according to this day.
- timePreference() - Method in interface appointmentplanner.api.AppointmentRequest
-
Time preference given with this appointment request.
- TimePreference - Enum Class in appointmentplanner.api
-
Strategy to find a Time slot to add an Appointment.
- TimeSlot - Interface in appointmentplanner.api
-
A time slot represents an (un)allocated range of time defined as [start,end).
- toString() - Method in interface appointmentplanner.api.Appointment
-
Override the default toString.
- toString() - Method in interface appointmentplanner.api.AppointmentData
-
Get the textual representation of AppointmentData.
- toString() - Method in record class appointmentplanner.api.LocalDay
-
Returns a string representation of this record class.
- toString() - Method in interface appointmentplanner.api.LocalDayPlan
-
Return a string containing the local date, the time zone and all appointments in natural order, presented with time as local time.
U
- UNSPECIFIED - Enum constant in enum class appointmentplanner.api.TimePreference
-
In case no time preference is specified, this is the default.
V
- valueOf(String) - Static method in enum class appointmentplanner.api.TimePreference
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class appointmentplanner.api.TimePreference
-
Returns an array containing the constants of this enum class, in the order they are declared.
Z
- zone() - Method in record class appointmentplanner.api.LocalDay
-
Returns the value of the
zone
record component.
All Classes and Interfaces|All Packages