|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Interval
Interval with observable properties.
| Field Summary | |
|---|---|
static String |
PROP_BEGIN
Constant defining the property name for begin. |
static String |
PROP_END
Constant defining the property name for end. |
| Method Summary | |
|---|---|
boolean |
contains(Interval interval)
Checks whether an interval is completely contained in the interval. |
boolean |
contains(JaretDate date)
Checks whether a given date is contained in the interval. |
JaretDate |
getBegin()
Retrieve the begin timestamp of the interval. |
JaretDate |
getEnd()
Retrieve the end timestamp of the interval. |
int |
getSeconds()
Retrieve the length of the interval in seconds. |
boolean |
intersects(Interval interval)
Check whether this intersects the given interval. |
void |
setBegin(JaretDate begin)
Set the begin timestamp of the interval. |
void |
setEnd(JaretDate end)
Set the end timestamp of the interval. |
| Methods inherited from interface de.jaret.util.misc.PropertyObservable |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
static final String PROP_END
static final String PROP_BEGIN
| Method Detail |
|---|
void setBegin(JaretDate begin)
begin - the begin timestamp to be set.JaretDate getBegin()
void setEnd(JaretDate end)
end - the end timestamp to be set.JaretDate getEnd()
boolean contains(JaretDate date)
date - date to be checked
boolean contains(Interval interval)
interval - interval to check
true if the interval is completely contained in the intervalint getSeconds()
boolean intersects(Interval interval)
interval - interval to be checked for intersection.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||