T - a class that implements Comparable; hence a partially ordered setpublic class Interval<T extends Comparable<? super T>> extends Object
Interval is immutable.| Constructor and Description |
|---|
Interval(T begin,
T end)
Construct an interval.
|
| Modifier and Type | Method and Description |
|---|---|
T |
begin()
Get the beginning of this interval.
|
T |
end()
Get the end of this interval.
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
is(IntervalRelation relation,
Interval<T> Y)
Check whether
this and Y satisfies a certain Allen's interval relation. |
Set<IntervalRelation> |
relations(Interval<T> Y)
Determine the interval relations between
this and Y. |
String |
toString() |
public T begin()
public T end()
public Set<IntervalRelation> relations(Interval<T> Y)
this and Y.Y - an intervalpublic boolean is(IntervalRelation relation, Interval<T> Y)
this and Y satisfies a certain Allen's interval relation.relation - an IntervalRelationY - an intervaltrue if this and Y satisfies relationCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.