public class ApptBucket extends SimpleModelData implements java.lang.Iterable<Appointment>
Constructor and Description |
---|
ApptBucket(java.util.Date start) |
ApptBucket(java.util.Date start,
java.util.Date end) |
Modifier and Type | Method and Description |
---|---|
void |
addAppointment(Appointment appt) |
boolean |
canAccept(java.util.Date d) |
void |
clear() |
int |
getAppointmentsAvailable() |
int |
getAppointmentsMade() |
int |
getDefaultAppointmentsAvailable() |
java.util.Date |
getEnd() |
java.util.Date |
getStart() |
boolean |
inDateRange(java.util.Date s,
java.util.Date e,
boolean applyMinMax)
Tests if this bucket is within the passed in range for start and end.
|
java.util.Iterator<Appointment> |
iterator() |
void |
setAppointmentsAvailable(int totalAppointments) |
void |
setAppointmentsMade(int appointmentsMade) |
void |
setDefaultAppointmentsAvailable(int int1) |
void |
setEnd(java.util.Date end) |
void |
setStart(java.util.Date start) |
void |
setTotalAppointments(int totalAppointments) |
getId, getProperty, setId, setProperty
public ApptBucket(java.util.Date start)
public ApptBucket(java.util.Date start, java.util.Date end)
public boolean canAccept(java.util.Date d)
public boolean inDateRange(java.util.Date s, java.util.Date e, boolean applyMinMax)
s
- e
- applyMinMax
- public void addAppointment(Appointment appt)
public void clear()
public java.util.Iterator<Appointment> iterator()
iterator
in interface java.lang.Iterable<Appointment>
public java.util.Date getStart()
public void setStart(java.util.Date start)
public java.util.Date getEnd()
public void setEnd(java.util.Date end)
public int getAppointmentsAvailable()
public void setAppointmentsAvailable(int totalAppointments)
public int getAppointmentsMade()
public void setAppointmentsMade(int appointmentsMade)
public void setDefaultAppointmentsAvailable(int int1)
public int getDefaultAppointmentsAvailable()
public void setTotalAppointments(int totalAppointments)