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 HealthBenefitPlanType extends AbstractNamedLookup {

	/**
     * 
     */
	private static final long serialVersionUID = 7199029219194047766L;
    
	/* Unverified Code */
    public static final Code CODE_PRESUMPTIVE = new Code("135");

     //Inner class
	public static class Code extends AbstractCode {

		private static final long serialVersionUID = -5607330968660786208L;

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

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

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

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

	}
}
