Module org.hsqldb
Package org.hsqldb.lib

## Class ObjectComparator.DefaultComparator<T>

- java.lang.Object
- - org.hsqldb.lib.ObjectComparator.DefaultComparator<T>

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

      public static class ObjectComparator.DefaultComparator<T>
      extends java.lang.Object
      implements ObjectComparator<T>

  Comparator that uses the equals and hash code methods of Objects.

- - ### 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
    --- | ---
    `DefaultComparator()` |

  - ### 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)` |

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

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

- - ### Constructor Detail

    - #### DefaultComparator

          public DefaultComparator()

  - ### Method Detail

    - #### equals

          public boolean equals​(T a,
                                T b)

      Specified by:
        `equals` in interface `ObjectComparator<T>`

    - #### hashCode

          public int hashCode​(T a)

      Specified by:
        `hashCode` in interface `ObjectComparator<T>`

    - #### longKey

          public long longKey​(T a)

      Specified by:
        `longKey` in interface `ObjectComparator<T>`