Package de.xima.fc.appointment
Class AppointmentAvailableDate
- java.lang.Object
-
- de.xima.fc.appointment.AppointmentAvailableDate
-
- All Implemented Interfaces:
IAppointmentAvailableDate,Serializable
public class AppointmentAvailableDate extends Object implements IAppointmentAvailableDate
Implementation of aIAppointmentAvailableDate.- Since:
- 6.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppointmentAvailableDate(LocalDate date, IAppointmentFreeSlot... times)Creates a new free slot for the given date and times.AppointmentAvailableDate(LocalDate date, Iterable<IAppointmentFreeSlot> times)Creates a new free slot for the given date and times.AppointmentAvailableDate(LocalDate date, Stream<IAppointmentFreeSlot> times)Creates a new free slot for the given date and times.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDategetDate()List<IAppointmentFreeSlot>getTimes()StringtoString()
-
-
-
Constructor Detail
-
AppointmentAvailableDate
public AppointmentAvailableDate(LocalDate date, IAppointmentFreeSlot... times)
Creates a new free slot for the given date and times.- Parameters:
date- Date to use.times- Time to use. Modifications to this array do not affect the newly created instance.
-
AppointmentAvailableDate
public AppointmentAvailableDate(LocalDate date, Iterable<IAppointmentFreeSlot> times)
Creates a new free slot for the given date and times.- Parameters:
date- Date to use.times- Time to use. Modifications to this array do not affect the newly created instance.
-
AppointmentAvailableDate
public AppointmentAvailableDate(LocalDate date, Stream<IAppointmentFreeSlot> times)
Creates a new free slot for the given date and times.- Parameters:
date- Date to use.times- Time to use. Modifications to this array do not affect the newly created instance.
-
-
Method Detail
-
getDate
public LocalDate getDate()
- Specified by:
getDatein interfaceIAppointmentAvailableDate- Returns:
- The start date of the free slot.
-
getTimes
public List<IAppointmentFreeSlot> getTimes()
- Specified by:
getTimesin interfaceIAppointmentAvailableDate- Returns:
- A list of times that are free on this
IAppointmentAvailableDate.getDate().
-
-