@Immutable public class CalendarDateRange extends Object
Constructor and Description |
---|
CalendarDateRange(CalendarDate start,
long durationInSecs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CalendarDateRange |
extend(CalendarDateRange other) |
CalendarDuration |
getDuration() |
long |
getDurationInSecs() |
CalendarDate |
getEnd() |
CalendarDuration |
getResolution() |
CalendarDate |
getStart() |
int |
hashCode() |
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(Date start,
Date end) |
static CalendarDateRange |
of(DateRange dr)
Deprecated.
|
void |
setResolution() |
DateRange |
toDateRange()
Deprecated.
|
String |
toString() |
public CalendarDateRange(CalendarDate start, long durationInSecs)
public static CalendarDateRange of(CalendarDate start, CalendarDate end)
public static CalendarDateRange of(Date start, 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 static CalendarDateRange of(DateRange dr)
public DateRange toDateRange()