package pwc.taxtech.atms.common; /** @see PwC.Tax.Tech.CIT.Globals\Utils\Constant.cs*/ public enum UserStatus { // public static readonly int Active = 1; // public static readonly int InActive = 0; // public static readonly int Disabled = -1; // public static readonly int Locked = -2; /***/ Active(1), /***/ InActive(0), /***/ Disabled(-1), /***/ Locked(-2), /***/ ; private Integer value; UserStatus(Integer value) { this.value = value; } public Integer value() { return value; } public static UserStatus valueOf(Integer value) { for (UserStatus item : UserStatus.values()) { if (item.value.equals(value)) { return item; } } return null; } }