Module org.hsqldb

Interface ObjectComparator<T>

All Known Implementing Classes:
ObjectComparator.DefaultComparator, ObjectComparator.IdentityComparator

public interface ObjectComparator<T>
Interface for equality comparison.

The equals and hashCode methods of this interace are used instead of the methods of the compared Objects.

The DefaultComparator implmentation calls the Object's methods.

The IdentityComparator implementation uses == instead of the equals method of the Object.

Updated for generics fredt@users.

Since:
2.0
Author:
fredt@users
  • Field Details

  • Method Details

    • equals

      boolean equals(T a, T b)
    • hashCode

      int hashCode(T a)
    • longKey

      long longKey(T a)