Interface EqualityComparator<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean equals​(T a, T b)
      This method tests if two objects are equal.
      int hashCode​(T obj)
      This method returns a hash code for the specified object.
    • Method Detail

      • hashCode

        int hashCode​(T obj)
        This method returns a hash code for the specified object.
        Parameters:
        obj - The object.
        Returns:
        The hash code for obj.
      • equals

        boolean equals​(T a,
                       T b)
        This method tests if two objects are equal.
        Parameters:
        a - The first object to compare.
        b - The second object to compare.
        Returns:
        true if a equals b, otherwise false.