@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Pair<?, ?> other = (Pair<?, ?>) obj; if (!first.equals(other.first)) return false; if (!second.equals(other.second)) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Ref2)) return false; Ref2 ref2 = (Ref2) o; if (which != null ? !which.equals(ref2.which) : ref2.which != null) return false; if (first != null ? !first.equals(ref2.first) : ref2.first != null) return false; if (second != null ? !second.equals(ref2.second) : ref2.second != null) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (!(obj instanceof Pair)) return false; Pair other = (Pair) obj; if (a == null) { if (other.a != null) return false; } else if (!a.equals(other.a)) return false; if (b == null) { if (other.b != null) return false; } else if (!b.equals(other.b)) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final Pair pair = (Pair) o; if (first != null ? !first.equals(pair.first) : pair.first != null) { return false; } if (second != null ? !second.equals(pair.second) : pair.second != null) { return false; } return true; }