@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Circuit circuit = (Circuit) o;

        if (eRank != null ? !eRank.equals(circuit.eRank) : circuit.eRank != null) return false;
        if (hRank != null ? !hRank.equals(circuit.hRank) : circuit.hRank != null) return false;
        if (pRank != null ? !pRank.equals(circuit.pRank) : circuit.pRank != null) return false;

        return true;
    }