@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof NeutralLoss)) return false;

        NeutralLoss that = (NeutralLoss) o;

        if (Double.compare(that.avgMass, avgMass) != 0) return false;
        if (Double.compare(that.monoMass, monoMass) != 0) return false;
        return !(name != null ? !name.equals(that.name) : that.name != null) && !(sign != null ? !sign.equals(that.sign) : that.sign != null);

    }