public final class Schedule extends Object implements Serializable
Constructor and Description |
---|
Schedule()
Creates an empty schedule in the system timezone.
|
Schedule(org.joda.time.DateTimeZone pTimeZone)
Creates an empty schedule in a specific timezone.
|
Schedule(Schedule pSchedule)
Creates a copy of another schedule.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addRecurrence(Recurrence pRecurrence)
Adds a recurrence to this schedule.
|
boolean |
equals(Object pOther) |
List<Recurrence> |
getRecurrences()
Returns the list of recurrences of this schedule.
|
org.joda.time.DateTimeZone |
getTimeZone()
Returns the timezone of this schedule.
|
int |
hashCode() |
boolean |
removeRecurrence(Recurrence pRecurrence)
Removes a recurrence from this schedule.
|
void |
setRecurrences(List<Recurrence> pRecurrences)
Sets the list of recurrences of this schedule.
|
String |
toString() |
public Schedule()
public Schedule(org.joda.time.DateTimeZone pTimeZone)
pTimeZone
- the timezone of the schedule; can not be null
.IllegalArgumentException
- if pTimeZone is null
.public Schedule(Schedule pSchedule)
pSchedule
- the schedule to copy; can not be null
.IllegalArgumentException
- if pSchedule is null
.public List<Recurrence> getRecurrences()
null
.public void setRecurrences(List<Recurrence> pRecurrences)
pRecurrences
- the list of recurrences to set; can be null
.public boolean addRecurrence(Recurrence pRecurrence)
pRecurrence
- the recurrence to add; can not be null
.true
the list of recurrences changes as a result of this call; false
otherwise.IllegalArgumentException
- if pRecurrence is null
.public boolean removeRecurrence(Recurrence pRecurrence)
pRecurrence
- the recurrence to remove; can be null
.true
the list of recurrences changes as a result of this call; false
otherwise.public org.joda.time.DateTimeZone getTimeZone()
null
.© 1998- 2021 Escenic AS