internal static IsAA GetInstance(string aminoAcid, IHashableFeature featureE) { IsAA isAA = new IsAA(); isAA.AminoAcid = aminoAcid; if (featureE != null) { isAA.FeatureCollection = new Feature[] { (Feature)featureE }; } return(isAA); }
public override bool Equals(object obj) { IsAA other = obj as IsAA; if (other == null) { return(false); } else { if (AminoAcid != other.AminoAcid || FeatureCollection.Length != other.FeatureCollection.Length) { return(false); } if (FeatureCollection.Length > 0) { return(FeatureCollection[0].Equals(other.FeatureCollection[0])); } return(true); } }