@Immutable
public class CalendarDateRange
extends java.lang.Object
Constructor and Description |
---|
CalendarDateRange(CalendarDate start,
long durationInSecs) |
Modifier and Type | Method and Description |
---|---|
CalendarDateRange |
extend(CalendarDateRange other) |
CalendarDuration |
getDuration() |
long |
getDurationInSecs() |
CalendarDate |
getEnd() |
CalendarDuration |
getResolution() |
CalendarDate |
getStart() |
boolean |
includes(CalendarDate cd) |
CalendarDateRange |
intersect(CalendarDateRange clip) |
boolean |
intersects(CalendarDate start,
CalendarDate end) |
boolean |
intersects(CalendarDateRange o) |
boolean |
isPoint() |
static CalendarDateRange |
of(CalendarDate start,
CalendarDate end) |
static CalendarDateRange |
of(java.util.Date start,
java.util.Date end) |
static CalendarDateRange |
of(DateRange dr)
Deprecated.
|
void |
setResolution() |
DateRange |
toDateRange()
Deprecated.
|
java.lang.String |
toString() |
public CalendarDateRange(CalendarDate start, long durationInSecs)
public static CalendarDateRange of(CalendarDate start, CalendarDate end)
public static CalendarDateRange of(java.util.Date start, java.util.Date end)
public CalendarDate getStart()
public CalendarDate getEnd()
public long getDurationInSecs()
public CalendarDuration getDuration()
public CalendarDuration getResolution()
public void setResolution()
public boolean intersects(CalendarDateRange o)
public boolean intersects(CalendarDate start, CalendarDate end)
public boolean includes(CalendarDate cd)
public CalendarDateRange intersect(CalendarDateRange clip)
public CalendarDateRange extend(CalendarDateRange other)
public boolean isPoint()
public java.lang.String toString()
toString
in class java.lang.Object
public static CalendarDateRange of(DateRange dr)
public DateRange toDateRange()