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

        Diod diod = (Diod) o;

        if (backMaxVoltage != diod.backMaxVoltage) return false;
        if (directMaxCurrent != diod.directMaxCurrent) return false;
        if (position != diod.position) return false;
        if (construction != diod.construction) return false;

        return true;
    }