public class AnyServerEquivalence extends java.lang.Object implements Equivalence<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
static Equivalence<java.lang.Object> |
INSTANCE
Deprecated.
|
| Constructor and Description |
|---|
AnyServerEquivalence()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(java.lang.Object obj,
java.lang.Object otherObj)
Deprecated.
Compares the two given objects for order.
|
boolean |
equals(java.lang.Object obj,
java.lang.Object otherObj)
Deprecated.
Indicates whether the objects passed are "equal to" each other.
|
int |
hashCode(java.lang.Object obj)
Deprecated.
Returns a hash code value for the object passed.
|
boolean |
isComparable(java.lang.Object obj)
Deprecated.
Returns whether the given object is comparable.
|
java.lang.String |
toString(java.lang.Object obj)
Deprecated.
Returns a string representation of the given object.
|
public static final Equivalence<java.lang.Object> INSTANCE
public int hashCode(java.lang.Object obj)
EquivalenceObject.hashCode(), call Object.hashCode().hashCode in interface Equivalence<java.lang.Object>obj - instance to calculate hash code forpublic boolean equals(java.lang.Object obj,
java.lang.Object otherObj)
EquivalenceObject.equals(Object)}, call Arrays.equals(Object[], Object[]).equals in interface Equivalence<java.lang.Object>obj - to be compared with second parameterotherObj - to be compared with first parametertrue if both objects are the same;
false otherwisepublic java.lang.String toString(java.lang.Object obj)
EquivalencetoString in interface Equivalence<java.lang.Object>obj - whose string representation is to be returnedpublic boolean isComparable(java.lang.Object obj)
EquivalenceEquivalence.compare(Object, Object) method.isComparable in interface Equivalence<java.lang.Object>obj - instance to check if it's comparabletrue if the object is comparable;
false otherwisepublic int compare(java.lang.Object obj,
java.lang.Object otherObj)
Equivalencecompare in interface Equivalence<java.lang.Object>obj - first object to be comparedotherObj - second object to be compared