/** * Get a enum by id * * @param id The id of the enum * @return The enum object */ public static EnumIf getEnumById(long id) { EnumIf result = EnumDelegate.getEnumById(typeof(LeadType), id); if (null == result) { switch (id) { case _BINARY: result = LeadType.BINARY; break; case _SOURCE: result = LeadType.SOURCE; break; default: result = LeadType.UNKNOWN; break; } } return(result); }
/** * Get a enum by id * * @param id The id of the enum * @return The enum object */ public static EnumIf getEnumById(long id) { return(EnumDelegate.getEnumById(typeof(LeadOS), id)); }
/** * Get a enum by id * * @param id * The id of the enum * @return The enum object */ public static EnumIf getEnumById(long id) { return(EnumDelegate.getEnumById(typeof(RPMHeaderTag), id)); }
/** * Get a enum by id * * @param id The id of the enum * @return The enum object */ public static EnumIf getEnumById(long id) { return(EnumDelegate.getEnumById(typeof(RPMIndexType), id)); }