@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) |
void |
setResolution() |
String |
toString() |
public CalendarDateRange(CalendarDate start, long durationInSecs)
public CalendarDateRange extend(CalendarDateRange other)
public CalendarDuration getDuration()
public long getDurationInSecs()
public CalendarDate getEnd()
public CalendarDuration getResolution()
public CalendarDate getStart()
public boolean includes(CalendarDate cd)
public CalendarDateRange intersect(CalendarDateRange clip)
public boolean intersects(CalendarDate start, CalendarDate end)
public boolean intersects(CalendarDateRange o)
public boolean isPoint()
public static CalendarDateRange of(CalendarDate start, CalendarDate end)
public static CalendarDateRange of(Date start, Date end)
public void setResolution()