|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.oness.common.all.BaseObject net.sf.oness.common.model.temporal.DateRange
Range of dates
Field Summary | |
static DateRange |
EMPTY
|
Fields inherited from class net.sf.oness.common.all.BaseObject |
log |
Constructor Summary | |
DateRange()
|
|
DateRange(Date start,
Date end)
Create a date range from start to end |
Method Summary | |
boolean |
abuts(DateRange arg)
|
java.lang.Object |
clone()
|
static DateRange |
combination(DateRange[] args)
|
int |
compareTo(java.lang.Object arg)
|
void |
endNow()
|
DateRange |
gap(DateRange arg)
|
Date |
getEnd()
|
Date |
getStart()
|
boolean |
includes(Date arg)
|
boolean |
includes(DateRange arg)
|
static boolean |
isContiguous(DateRange[] args)
|
boolean |
isEmpty()
|
boolean |
isOpen()
|
long |
lengthInDays()
Calculates the length of this range in days. |
long |
lengthInMinutes()
Calculates the length of this range in minutes. |
boolean |
overlaps(DateRange arg)
|
boolean |
partitionedBy(DateRange[] args)
|
void |
setEnd(Date end)
Set the end date |
void |
setStart(Date start)
Set the start date |
static DateRange |
startingAndEndingNow()
|
static DateRange |
startingNow()
|
static DateRange |
startingOn(Date start)
|
java.lang.String |
toString()
|
static DateRange |
upTo(Date end)
|
Methods inherited from class net.sf.oness.common.all.BaseObject |
equals, hashCode |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static DateRange EMPTY
Constructor Detail |
public DateRange()
public DateRange(Date start, Date end)
start
- start dateend
- end dateMethod Detail |
public void setStart(Date start)
start
- start datepublic Date getStart()
public void setEnd(Date end)
end
- end datepublic Date getEnd()
public boolean isEmpty()
public boolean isOpen()
public boolean includes(Date arg)
public void endNow()
public static DateRange upTo(Date end)
public static DateRange startingOn(Date start)
public static DateRange startingNow()
public static DateRange startingAndEndingNow()
public boolean overlaps(DateRange arg)
public boolean includes(DateRange arg)
public DateRange gap(DateRange arg)
public int compareTo(java.lang.Object arg)
public boolean abuts(DateRange arg)
public boolean partitionedBy(DateRange[] args)
public static DateRange combination(DateRange[] args)
public static boolean isContiguous(DateRange[] args)
public long lengthInDays()
public long lengthInMinutes()
public java.lang.String toString()
public java.lang.Object clone()
Object.clone()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |