package gov.va.med.esr.common.model.lookup;

import gov.va.med.fw.model.lookup.AbstractCode;
import gov.va.med.fw.model.lookup.AbstractNamedLookup;

public class HealthBenefitPlanCategory extends AbstractNamedLookup {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9119822063037614066L;

	/**
     * 
     */
	//private static final long serialVersionUID = 7199029219194047766L;
    
     //Inner class
	public static class Code extends AbstractCode {

		//private static final long serialVersionUID = -5607330968660786208L;

        /**
		 * 
		 */
		private static final long serialVersionUID = -3264079159754570998L;

		private Code(String code) {
			super(code);
		}

		public static Code getByCode(String code) {
			return (Code) getCode(Code.class, code);
		}
	}

	/**
	 * Default constructor.
	 */
	public HealthBenefitPlanCategory() {
		super();
	}

	public int compareTo(Object o) {
		if (o != null && o instanceof HealthBenefitPlanCategory)
			return getName().compareTo(((HealthBenefitPlanCategory) o).getName());
		else
			return 1;

	}
}
