public final class Occurrence extends Object implements Comparable<Occurrence>, Serializable
Schedule
. A schedule may have multiple occurrences.Constructor and Description |
---|
Occurrence(org.joda.time.LocalTime pStartTime,
org.joda.time.LocalTime pEndTime,
org.joda.time.LocalDate pDate,
org.joda.time.DateTimeZone pTimeZone)
Creates an occurrence.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Occurrence pOccurrence) |
boolean |
equals(Object pOther) |
org.joda.time.LocalDate |
getDate()
Returns the date of this occurrence.
|
org.joda.time.LocalTime |
getEndTime()
Returns the end time of this occurrence.
|
org.joda.time.LocalTime |
getStartTime()
Returns the start time of this occurrence.
|
org.joda.time.DateTimeZone |
getTimeZone()
Returns the time zone of this occurrence.
|
int |
hashCode() |
String |
toString() |
public Occurrence(org.joda.time.LocalTime pStartTime, org.joda.time.LocalTime pEndTime, org.joda.time.LocalDate pDate, org.joda.time.DateTimeZone pTimeZone)
null
value of start and end time indicates that this is a
closed
exceptional occurrence.pStartTime
- the start time; can be null
.pEndTime
- the end time; can be null
.pDate
- the occurrence date; can not be null
.pTimeZone
- the timezone; can not be null
.IllegalArgumentException
- if pDate or pTimeZone is null
.public org.joda.time.LocalTime getStartTime()
null
if this is a
closed
exceptional occurrence.null
.public org.joda.time.LocalTime getEndTime()
null
if this is a
closed
exceptional occurrence.null
.public org.joda.time.LocalDate getDate()
null
.public org.joda.time.DateTimeZone getTimeZone()
null
.public int compareTo(Occurrence pOccurrence)
compareTo
in interface Comparable<Occurrence>
© 1998- 2018 Stibo DX