public class SignupTimeslot extends Object implements Comparable
This class holds the information for signup time slot. This object is mapped directly to the DB storage by Hibernate
| Modifier and Type | Field and Description |
|---|---|
static int |
UNLIMITED
a constants maximum number for attendees
|
| Constructor and Description |
|---|
SignupTimeslot()
constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
SignupAttendee |
getAttendee(String attendeeId)
get the SignupAttendee object according to the attendee's Id
|
SignupAttendee |
getWaiter(String attendeeId)
get the SignupAttendee object according to the attendee's Id, who is on
the waiting list at the time slot
|
boolean |
isAvailable()
check if current time slot is available for adding more people
|
boolean |
isUnlimitedAttendee()
check if the time slot allows unlimited attendee to join
|
public static final int UNLIMITED
public boolean isAvailable()
public SignupAttendee getAttendee(String attendeeId)
attendeeId - an attendee's Idpublic SignupAttendee getWaiter(String attendeeId)
attendeeId - an attendee's Idpublic boolean isUnlimitedAttendee()
public int compareTo(Object o) throws ClassCastException
compareTo in interface ComparableClassCastExceptionCopyright © 2003–2021 Sakai Project. All rights reserved.