(Object o)
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | public boolean equals(Object o) { |
| 45 | if (!(o instanceof Pair<?, ?>)) { |
| 46 | return false; |
| 47 | } |
| 48 | |
| 49 | Pair<?, ?> that = (Pair<?, ?>) o; |
| 50 | return equal(this.first, that.first) && equal(this.second, that.second); |
| 51 | } |
| 52 | |
| 53 | private static boolean equal(Object a, Object b) { |
| 54 | return a == b || (a != null && a.equals(b)); |
no test coverage detected