BestSolution.at public p2 repository
ElementComparer
at.bestsolution.framework.grid

Interface ElementComparer<R>

  • Type Parameters:
    R - row type


    public interface ElementComparer<R>
    Element comparer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      boolean equals(R a, @NonNull java.lang.Object b)
      Compares two elements for equality
      int hashCode(R element)
      Returns the hash code for the given element.
    • Method Detail

      • equals

        boolean equals(R a,
                       @NonNull java.lang.Object b)
        Compares two elements for equality
        Parameters:
        a - the first element
        b - the second element
        Returns:
        whether a is equal to b
      • hashCode

        int hashCode(R element)
        Returns the hash code for the given element.
        Parameters:
        element - the element the hash code is calculated for
        Returns:
        the hash code for the given element