- java.lang.Object
-
- org.hsqldb.lib.ObjectComparator.IdentityComparator<T>
-
- All Implemented Interfaces:
ObjectComparator<T>
- Enclosing interface:
- ObjectComparator<T>
public static class ObjectComparator.IdentityComparator<T> extends java.lang.Object implements ObjectComparator<T>
Comparator that uses identity for Object equality.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hsqldb.lib.ObjectComparator
ObjectComparator.DefaultComparator<T>, ObjectComparator.IdentityComparator<T>
-
-
Field Summary
-
Fields inherited from interface org.hsqldb.lib.ObjectComparator
defaultComparator, identityComparator
-
-
Constructor Summary
Constructors Constructor Description IdentityComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(T a, T b)
int
hashCode(T a)
long
longKey(T a)
-
-
-
Method Detail
-
equals
public boolean equals(T a, T b)
- Specified by:
equals
in interfaceObjectComparator<T>
-
hashCode
public int hashCode(T a)
- Specified by:
hashCode
in interfaceObjectComparator<T>
-
longKey
public long longKey(T a)
- Specified by:
longKey
in interfaceObjectComparator<T>
-
-