public final class ExtendedAppointmentFreeSlot extends Object
AppointmentSlot, but with
 more info.| Constructor and Description | 
|---|
ExtendedAppointmentFreeSlot(ZonedDateTime dateTimeFrom,
                           ZonedDateTime dateTimeUntil,
                           long capacity)
Creates a new slot starting at the given time and lasting for the given duration. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
long | 
getCapacity()  | 
LocalDate | 
getDateFrom()  | 
LocalDateTime | 
getDateTimeUntil()  | 
LocalDate | 
getDateUntil()  | 
com.google.common.collect.Range<Instant> | 
getInstant()  | 
Instant | 
getInstantFrom()  | 
LocalTime | 
getTimeFrom()  | 
ExtendedAppointmentFreeSlot | 
withReducedCapacity(long amountToReduce)  | 
public ExtendedAppointmentFreeSlot(ZonedDateTime dateTimeFrom, ZonedDateTime dateTimeUntil, long capacity)
dateTimeFrom - Start time of the slot.dateTimeUntil - End time of the slot.capacity - Capacity of the slot, i.e. how many appointments can be booked at once for this slot.public long getCapacity()
public LocalDate getDateFrom()
public LocalDateTime getDateTimeUntil()
public LocalDate getDateUntil()
public com.google.common.collect.Range<Instant> getInstant()
public Instant getInstantFrom()
public LocalTime getTimeFrom()
public ExtendedAppointmentFreeSlot withReducedCapacity(long amountToReduce)
amountToReduce - Amount by which to reduce the capacity.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.