Interface EqualsChecker<T,​K>

  • Type Parameters:
    T - type of the first objects
    K - type of the second objects
    All Known Implementing Classes:
    InstanceOfEqualsChecker, NativeEqualsChecker

    public interface EqualsChecker<T,​K>
    Compare objects by an different equals functionality then there own. This interface makes it possible to compare for example apples and oranges by equal weight.
    • Method Detail

      • equals

        boolean equals​(T objectT,
                       K objectK)
        Calculate equality by specific attributes.
        Parameters:
        objectT - the first object, of type T
        objectK - the other object, of type K
        Returns:
        true if the objects are equals by some specific attributes