Module org.hsqldb
Package org.hsqldb.lib

## Class ObjectComparator.IdentityComparator

- java.lang.Object
- - org.hsqldb.lib.ObjectComparator.IdentityComparator

- All Implemented Interfaces:
    `ObjectComparator`
  Enclosing interface:
    ObjectComparator<T>

      public static class ObjectComparator.IdentityComparator
      extends java.lang.Object
      implements ObjectComparator

  Comparator that uses identity for Object equality.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.hsqldb.lib.ObjectComparator

      `ObjectComparator.DefaultComparator, ObjectComparator.IdentityComparator`

  - ### 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​(java.lang.Object a, java.lang.Object b)` |
    `int` | `hashCode​(java.lang.Object a)` |
    `long` | `longKey​(java.lang.Object a)` |

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### IdentityComparator

          public IdentityComparator()

  - ### Method Detail

    - #### equals

          public boolean equals​(java.lang.Object a,
                                java.lang.Object b)

      Specified by:
        `equals` in interface `ObjectComparator`

    - #### hashCode

          public int hashCode​(java.lang.Object a)

      Specified by:
        `hashCode` in interface `ObjectComparator`

    - #### longKey

          public long longKey​(java.lang.Object a)

      Specified by:
        `longKey` in interface `ObjectComparator`