|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.util.Order.Identity
public static class Order.Identity
Identity order implementation comparing objects by address. The
implementation uses System.identityHashCode and implements
HashCode. The order is based upon this encoding
which allows retrieval of objects but has no further meaning. Note that
x != null implies less(null, x)
and of course equals(null, null).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.util.Order |
|---|
Order.CustomLexicalOrder, Order.Identity, Order.Lexical, Order.Natural |
| Field Summary |
|---|
| Fields inherited from interface recoder.util.Order |
|---|
IDENTITY, LEXICAL, NATURAL |
| Fields inherited from interface recoder.util.HashCode |
|---|
IDENTITY, NATURAL |
| Constructor Summary | |
|---|---|
Order.Identity()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object x,
java.lang.Object y)
Compares two objects for equality. |
boolean |
greater(java.lang.Object x,
java.lang.Object y)
Check if the first object is greater than the second one. |
boolean |
greaterOrEquals(java.lang.Object x,
java.lang.Object y)
Check if the first object is greater than or equals the second one. |
int |
hashCode(java.lang.Object x)
Return an integer value representing the object. |
boolean |
isComparable(java.lang.Object x,
java.lang.Object y)
Check if both objects can be related. |
boolean |
less(java.lang.Object x,
java.lang.Object y)
Check if the first object is less than the second one. |
boolean |
lessOrEquals(java.lang.Object x,
java.lang.Object y)
Check if the first object is less than or equals the second one. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Order.Identity()
| Method Detail |
|---|
public final boolean equals(java.lang.Object x,
java.lang.Object y)
Equality
equals in interface Equalityx - the first object.y - the second object.
public final int hashCode(java.lang.Object x)
HashCode
hashCode in interface HashCodex - an object.
public final boolean isComparable(java.lang.Object x,
java.lang.Object y)
Order
isComparable in interface Orderx - the first object.y - the second object.
public final boolean less(java.lang.Object x,
java.lang.Object y)
Orderless(x, y) implies !equals(x, y)
.
less in interface Orderx - the first object.y - the second object.
public final boolean greater(java.lang.Object x,
java.lang.Object y)
Ordergreater(x, y) implies
!equals(x, y).
greater in interface Orderx - the first object.y - the second object.
public final boolean lessOrEquals(java.lang.Object x,
java.lang.Object y)
Order
lessOrEquals in interface Orderx - the first object.y - the second object.
public final boolean greaterOrEquals(java.lang.Object x,
java.lang.Object y)
Order
greaterOrEquals in interface Orderx - the first object.y - the second object.
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||