public final class ExceptionalRecurrence extends AbstractRecurrence
Schedule
. It excludes or overrides some occurrences of a Recurrence
.Constructor and Description |
---|
ExceptionalRecurrence(ExceptionalRecurrence pRecurrence)
Creates a copy of another exceptional recurrence.
|
ExceptionalRecurrence(RecurrenceType pRecurrenceType)
Creates an empty exceptional recurrence of a specified type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object pOther) |
int |
hashCode() |
boolean |
isClosed()
Returns whether this exceptional recurrence excludes or overrides occurrences of a
Recurrence . |
void |
setClosed(boolean pClosed)
Sets whether this exceptional recurrence should exclude or override occurrences of a
Recurrence . |
String |
toString() |
getAttributeValue, getEndTime, getRecurrenceType, getStartTime, setAttributeValue, setEndTime, setStartTime
public ExceptionalRecurrence(RecurrenceType pRecurrenceType)
pRecurrenceType
- the recurrent type; can not be null
.IllegalArgumentException
- if pRecurrenceType is null
or invalid.public ExceptionalRecurrence(ExceptionalRecurrence pRecurrence)
pRecurrence
- the exceptional recurrent to copy; can not be null
.IllegalArgumentException
- if pRecurrence is null
.public boolean isClosed()
Recurrence
.true
if this exceptional recurrence excludes occurrences of a Recurrence
;
false
if this exceptional recurrence overrides occurrences of a Recurrence
;public void setClosed(boolean pClosed)
Recurrence
.pClosed
- true
if this exceptional recurrence should exclude occurrences of a Recurrence
;
false
if this exceptional recurrence should override occurrences of a Recurrence
;public int hashCode()
hashCode
in class AbstractRecurrence
public boolean equals(Object pOther)
equals
in class AbstractRecurrence
public String toString()
toString
in class AbstractRecurrence
© 1998- 2021 Escenic AS