Package com.helger.commons.equals
Interface IEqualsImplementation<T>
-
- Type Parameters:
T- Type of objects to compare
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IEqualsImplementation<T>
Interface to implement for checking if two objects are identical. This interface is only used within theEqualsImplementationRegistry.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanareEqual(T aObj1, T aObj2)Check if the passed two objects are identical or not.default booleanimplementationEqualsOverridesInterface()
-
-
-
Method Detail
-
areEqual
boolean areEqual(@Nonnull T aObj1, @Nonnull T aObj2)
Check if the passed two objects are identical or not.- Parameters:
aObj1- First object. May not benull.aObj2- Second object. May not benull.- Returns:
trueif the passed objects are equals according to the specification of Object.class.
-
implementationEqualsOverridesInterface
default boolean implementationEqualsOverridesInterface()
- Returns:
trueif this implementation is designed to work on an interface, but equals is called for an implementation of that interface and provides its own equal method.
-
-