static public ProteinPositionAndLength GetInstance(ProteinPosition proteinPosition, int length)
        {
            ProteinPositionAndLength aProteinPositionAndLength = new ProteinPositionAndLength();

            aProteinPositionAndLength.ProteinPosition = proteinPosition;
            aProteinPositionAndLength.Length          = length;
            return(aProteinPositionAndLength);
        }
        public int CompareTo(object y)
        {
            ProteinPositionAndLength yProteinPositionAndLength = (ProteinPositionAndLength)y; //!!!raise error

            int compareProteinPosition = ProteinPosition.CompareTo(yProteinPositionAndLength.ProteinPosition);

            if (compareProteinPosition != 0)
            {
                return(compareProteinPosition);
            }

            return(Length.CompareTo(yProteinPositionAndLength.Length));
        }