|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.fortuna.ical4j.model.DateRange
public class DateRange
Field Summary | |
---|---|
static int |
INCLUSIVE_END
A flag indicating whether to include the end of the period in test functions. |
static int |
INCLUSIVE_START
A flag indicating whether to include the start of the period in test functions. |
Constructor Summary | |
---|---|
DateRange(Date start,
Date end)
|
Method Summary | |
---|---|
boolean |
adjacent(DateRange range)
Decides whether these periods are serial without a gap. |
boolean |
after(DateRange range)
Decides whether this period starts after the given period ends. |
boolean |
before(DateRange range)
Decides whether this period is completed before the given period starts. |
boolean |
contains(DateRange range)
Decides whether the given period is completely contained within this one. |
Date |
getRangeEnd()
|
Date |
getRangeStart()
|
boolean |
includes(Date date)
Determines if the specified date occurs within this period (inclusive of period start and end). |
boolean |
includes(Date date,
int inclusiveMask)
Decides whether a date falls within this period. |
boolean |
intersects(DateRange range)
Decides whether this period intersects with another one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INCLUSIVE_START
public static final int INCLUSIVE_END
Constructor Detail |
---|
public DateRange(Date start, Date end)
start
- the start of the rangeend
- the end of the rangeMethod Detail |
---|
public Date getRangeStart()
public Date getRangeEnd()
public final boolean includes(Date date)
date
- a date to test for inclusion
public final boolean includes(Date date, int inclusiveMask)
date
- the date to be testedinclusiveMask
- specifies whether period start and end are included
in the calculation
INCLUSIVE_START
,
INCLUSIVE_END
public final boolean before(DateRange range)
range
- a period that may or may not start after this period ends
public final boolean after(DateRange range)
range
- a period that may or may not end before this period starts
public final boolean intersects(DateRange range)
range
- a possible intersecting period
public final boolean adjacent(DateRange range)
range
- a period to test for adjacency
public final boolean contains(DateRange range)
range
- the period that may be contained by this one
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |