Example #1
0
        }//getStatus

        //****************mutator method

        /** Changes the status of the member
         *  @param newStatus the new status of the member
         *  @throws IllegalArgumentException if newStatus is not one of the
         *             allowed status characters
         */
        public void setStatus(char newStatus)
        {
            if (MEMBER_STATUS_VALUES.IndexOf(newStatus) < 0)
            {
                throw new IndexOutOfRangeException(MEMBER_STATUS_HELP);
            }
            status = newStatus;
        }//setStatus
Example #2
0
        }//getStatus

        //****************mutator method

        /** Changes the status of the member
         *  @param newStatus the new status of the member
         *  @throws IllegalArgumentException if newStatus is not one of the
         *             allowed status characters
         */
        public void setStatus(char newStatus)
        {
            if (MEMBER_STATUS_VALUES.IndexOf(newStatus) < 0)
            {
                throw new System.ArgumentException(MEMBER_STATUS_HELP);
            }
            status = newStatus;
        }//setStatus