@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Pair other = (Pair) obj;
        if (!Objects.equals(this.p1.toUpperCase(), other.p1.toUpperCase())) {
            return false;
        }
        if (!Objects.equals(this.p2.toUpperCase(), other.p2.toUpperCase())) {
            return false;
        }
        return true;
    }