Interface AlikenessComparator<T>


public interface AlikenessComparator<T>
Comparator providing means for alikeness. In contrast to equality, compared objects must not be equal in all regards (depending on their semantics) nor are they required to provide the same hash code.
Since:
4.2.7
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    alike(T first, T second)
    Compare given elements for alikeness.
  • Method Details

    • alike

      boolean alike(T first, T second)
      Compare given elements for alikeness.
      Parameters:
      first - The first element.
      second - The second element.
      Returns:
      true, if both elements are alike.
      Since:
      4.2.7