Esempio n. 1
0
        /// <summary>
        ///     Object equality
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(SubstitutionModificationObj other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (other == null)
            {
                return(false);
            }

            if (AvgMassDelta.Equals(other.AvgMassDelta) && (Location == other.Location) &&
                MonoisotopicMassDelta.Equals(other.MonoisotopicMassDelta) &&
                (OriginalResidue == other.OriginalResidue) && (ReplacementResidue == other.ReplacementResidue))
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
        /// <summary>
        ///     Object equality
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(ModificationObj other)
        {
            if (ReferenceEquals(this, other))
            {
                return(true);
            }
            if (other == null)
            {
                return(false);
            }

            if (AvgMassDelta.Equals(other.AvgMassDelta) &&
                MonoisotopicMassDelta.Equals(other.MonoisotopicMassDelta) && (Location == other.Location) &&
                ListUtils.ListEqualsUnOrdered(Residues, other.Residues) && Equals(CVParams, other.CVParams))
            {
                return(true);
            }
            return(false);
        }