public final class Recurrence extends AbstractRecurrence
Schedule
.Constructor and Description |
---|
Recurrence(Recurrence pRecurrence)
Creates a copy of another recurrence.
|
Recurrence(RecurrenceType pRecurrenceType)
Creates an empty recurrence of a specified type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addException(ExceptionalRecurrence pException)
Adds a exceptional recurrence to this recurrence.
|
boolean |
equals(Object pOther) |
List<ExceptionalRecurrence> |
getExceptions()
Returns the list of exceptional recurrences of this recurrence.
|
RecurrenceRange |
getRecurrenceRange()
Returns the range of this recurrence.
|
int |
hashCode() |
boolean |
removeException(ExceptionalRecurrence pException)
Removes a exceptional recurrence from this recurrence.
|
void |
setExceptions(List<ExceptionalRecurrence> pExceptions)
Sets the list of exceptional recurrences of this recurrence.
|
void |
setRecurrenceRange(RecurrenceRange pRecurrenceRange)
Sets the range of this recurrence.
|
String |
toString() |
getAttributeValue, getEndTime, getRecurrenceType, getStartTime, setAttributeValue, setEndTime, setStartTime
public Recurrence(RecurrenceType pRecurrenceType)
pRecurrenceType
- the recurrent type; can not be null
.IllegalArgumentException
- if pRecurrenceType is null
.public Recurrence(Recurrence pRecurrence)
pRecurrence
- the recurrent to copy; can not be null
.IllegalArgumentException
- if pRecurrence is null
.public RecurrenceRange getRecurrenceRange()
null
.public void setRecurrenceRange(RecurrenceRange pRecurrenceRange)
pRecurrenceRange
- the range to set; can be null
.public List<ExceptionalRecurrence> getExceptions()
null
.public void setExceptions(List<ExceptionalRecurrence> pExceptions)
pExceptions
- the list of exceptional recurrences to set; can be null
.public boolean addException(ExceptionalRecurrence pException)
pException
- the exceptional recurrence to add; can not be null
.true
the list of exceptional recurrences changes as a result of this call; false
otherwise.IllegalArgumentException
- if pException is null
.public boolean removeException(ExceptionalRecurrence pException)
pException
- the exceptional recurrence to remove; can be null
.true
the list of exceptional recurrences changes as a result of this call; false
otherwise.public int hashCode()
hashCode
in class AbstractRecurrence
public boolean equals(Object pOther)
equals
in class AbstractRecurrence
public String toString()
toString
in class AbstractRecurrence
© 1998- 2018 Stibo DX