Package org.opendaylight.yangtools.util
Class EvenMoreObjects
java.lang.Object
org.opendaylight.yangtools.util.EvenMoreObjects
Deprecated, for removal: This API element is subject to removal in a future version.
Utility helping to implement readable equals() methods.
Usage:
@Override public boolean equals(Object obj) { return EvenMoreObjects.equalsHelper(this, obj, (one, another) -> Objects.equals(one.name, another.name) && Objects.equals(one.age, another.age)); }
- Author:
- Michael Vorburger, Red Hat
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> boolean
equalsHelper
(T self, Object other, EvenMoreObjects.BooleanEqualsFunction<T> equals) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
equalsHelper
public static <T> boolean equalsHelper(T self, Object other, EvenMoreObjects.BooleanEqualsFunction<T> equals) Deprecated, for removal: This API element is subject to removal in a future version.
-