Subversion Repositories SmartDukaan

Rev

Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.dao.enumuration;

public enum RechargeType {
        MOBILE(1),
        DTH(2);

        private final int value;

        private RechargeType(int value) {
                this.value = value;
        }

        public int getValue() {
                return value;
        }

        public static RechargeType findByValue(int value) { 
                switch (value) {
                case 1:
                        return MOBILE;
                case 2:
                        return DTH;
                default:
                        return null;
                }
        }
}