Checks the two objects for equality by delegating to their respective Object#equals(Object) methods. @param o the Pair to which this one is to be checked for equality @return true if the underlying objects of the Pair are both considered equal
(Object o)
| 48 | * equal |
| 49 | */ |
| 50 | @Override |
| 51 | public boolean equals(Object o) { |
| 52 | if (!(o instanceof Pair)) { |
| 53 | return false; |
| 54 | } |
| 55 | Pair<?, ?> p = (Pair<?, ?>) o; |
| 56 | return ObjectsCompat.equals(p.first, first) && ObjectsCompat.equals(p.second, second); |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Compute a hash code using the hash codes of the underlying objects |
no test coverage detected