(Object o)
| 11 | this.second = second; |
| 12 | } |
| 13 | @Override |
| 14 | public boolean equals(Object o) { |
| 15 | if (!(o instanceof Pair)) { |
| 16 | return false; |
| 17 | } |
| 18 | Pair<?, ?> p = (Pair<?, ?>) o; |
| 19 | return Objects.equals(p.first, first) && Objects.equals(p.second, second); |
| 20 | } |
| 21 | @Override |
| 22 | public int hashCode() { |
| 23 | return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); |