T - a class that implements Comparable; hence a partially ordered setpublic class Interval<T extends java.lang.Comparable<? super T>>
extends java.lang.Object
implements java.io.Serializable
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(java.lang.Object obj) |
int |
hashCode() |
boolean |
is(IntervalRelation relation,
Interval<T> Y)
Check whether
this and Y satisfies a certain Allen's interval relation. |
java.util.Set<IntervalRelation> |
relations(Interval<T> Y)
Determine the interval relations between
this and Y. |
java.lang.String |
toString() |
public T begin()
public T end()
public java.util.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 relationpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object