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

        Resistor resistor = (Resistor) o;

        if (current != resistor.current) return false;
        if (power != resistor.power) return false;
        if (resistance != resistor.resistance) return false;
        if (voltage != resistor.voltage) return false;

        return true;
    }