T - Type of objects to compare@FunctionalInterface public interface IEqualsImplementation<T>
EqualsImplementationRegistry.| Modifier and Type | Method and Description |
|---|---|
boolean |
areEqual(T aObj1,
T aObj2)
Check if the passed two objects are identical or not.
|
default boolean |
implementationEqualsOverridesInterface() |
boolean areEqual(@Nonnull T aObj1, @Nonnull T aObj2)
aObj1 - First object. May not be null.aObj2 - Second object. May not be null.true if the passed objects are equals according to the
specification of Object.class.default boolean implementationEqualsOverridesInterface()
true if 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.Copyright © 2014–2019 Philip Helger. All rights reserved.