Returns true if the given objects are considered equivalent. The equivalent method implements an equivalence relation on object references: It is reflexive : for any reference x, including null, equivalent(x, x) returns true. It is
(@Nullable T a, @Nullable T b)
| 66 | * </ul> |
| 67 | */ |
| 68 | public final boolean equivalent(@Nullable T a, @Nullable T b) { |
| 69 | if (a == b) { |
| 70 | return true; |
| 71 | } |
| 72 | if (a == null || b == null) { |
| 73 | return false; |
| 74 | } |
| 75 | return doEquivalent(a, b); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Returns {@code true} if {@code a} and {@code b} are considered equivalent. |
no test coverage detected