|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
The interface representing partial order.
Partially ordered set is a set in which some (i.e., not necessarily all pairs of) two values are comparable.
| 入れ子クラスの概要 | |
static class |
PartialOrder.IncomparableException
An exception object thrown when the comparison is impossible. |
| メソッドの概要 | |
boolean |
comparable(java.lang.Object that)
Returns whether this object and the specified object are comparable or not. |
int |
compareTo(java.lang.Object that)
Compares two objects. |
| メソッドの詳細 |
public boolean comparable(java.lang.Object that)
throws java.lang.ClassCastException
a.comparable(a) for any instance a.a.comparable(b) == b.comparable(a) for any two objects a and b.a.comparable(b) and b.comparable(c) hold, then a.comparable(c).
that - Target object
true if this and that are comparable. false otherwise.
java.lang.ClassCastException - that is not an instance which this requires.
public int compareTo(java.lang.Object that)
throws java.lang.ClassCastException,
PartialOrder.IncomparableException
comparable returns true.
Otherwise IncomparableException is thrown.java.lang.Comparable interface.
java.lang.Comparable 内の compareTothat - Target object
java.lang.ClassCastException - when that is not an instance which this requires.
PartialOrder.IncomparableException - when this and that are not comparable.comparable(Object),
Comparable
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||