|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.interval.Interval<T>
T - a class that is Comparable; hence a partially ordered setpublic class Interval<T extends java.lang.Comparable<T>>
This class represents an interval.
For a partially ordered set, there is a binary relation, denoted as ≤, that indicates that, for certain pairs of elements in the set, one of the elements precedes the other.
An interval is defined as follows. For a ≤ b, an interval [a,b] is the set of elements x satisfying a ≤ x ≤ b (i.e. a ≤ x and x ≤ b). It contains at least the elements a and b.
This class is immutable.
| Field Summary | |
|---|---|
T |
begin
the beginning of this interval |
T |
end
the end of this interval |
| Constructor Summary | |
|---|---|
Interval(T begin,
T end)
Construct an interval [begin, end]. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
hashCode()
|
boolean |
is(Algebra.Relation relation,
Interval<T> Y)
Check whether this and Y satisfies a certain Algebra.Relation. |
java.util.Set<Algebra.Relation> |
relations(Interval<T> Y)
Determine the relations between this and Y. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final T extends java.lang.Comparable<T> begin
public final T extends java.lang.Comparable<T> end
| Constructor Detail |
|---|
public Interval(T begin,
T end)
[begin, end].
begin - the beginning of this intervalend - the end of this interval| Method Detail |
|---|
public java.util.Set<Algebra.Relation> relations(Interval<T> Y)
this and Y.
Y - another Interval
public boolean is(Algebra.Relation relation,
Interval<T> Y)
this and Y satisfies a certain Algebra.Relation.
relation - a Algebra.RelationY - another Interval
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
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||