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