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