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)
| 69 | |
| 70 | |
| 71 | public final boolean equivalent(@Nullable T a, @Nullable T b) { |
| 72 | if (a == b) { |
| 73 | return true; |
| 74 | } |
| 75 | if (a == null || b == null) { |
| 76 | return false; |
| 77 | } |
| 78 | return doEquivalent(a, b); |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Returns {@code true} if {@code a} and {@code b} are considered equivalent. |
no test coverage detected