@Test(expected=IllegalArgumentException.class) public void testNonexistentById() { Language.getById(-1); }
public static Language getById(int id) { if (0 < id && id <= LANGUAGES.length) { return LANGUAGES[id-1]; } else { throw new IllegalArgumentException("unknown language id: '" + id + "'"); } }
Language implements Comparable<Language>, Serializable { public static Language getById(int id) { if (0 < id && id <= LANGUAGES.length) { return LANGUAGES[id-1]; } else { throw new IllegalArgumentException("unknown language id: '" + id + "'"); } } }
Language implements Comparable<Language>, Serializable { public static Language getById(int id) { if (0 < id && id <= LANGUAGES.length) { return LANGUAGES[id-1]; } else { throw new IllegalArgumentException("unknown language id: '" + id + "'"); } } private  Language(short id, String langCode, String enLangName, String nativeName); }
Language implements Comparable<Language>, Serializable { public static Language getById(int id) { if (0 < id && id <= LANGUAGES.length) { return LANGUAGES[id-1]; } else { throw new IllegalArgumentException("unknown language id: '" + id + "'"); } } private  Language(short id, String langCode, String enLangName, String nativeName); short getId(); String getLangCode(); String getEnLangName(); String getNativeName(); Locale getLocale(); static Language getByLangCode(String langCode); static Language getByLangCodeLenient(String langCode); static Language getByFullLangName(String language); static boolean hasLangCode(String langCode); static Language getById(int id); String getDomain(); LanguageInfo getLanguageInfo(); @Override int compareTo(Language language); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
Language implements Comparable<Language>, Serializable { public static Language getById(int id) { if (0 < id && id <= LANGUAGES.length) { return LANGUAGES[id-1]; } else { throw new IllegalArgumentException("unknown language id: '" + id + "'"); } } private  Language(short id, String langCode, String enLangName, String nativeName); short getId(); String getLangCode(); String getEnLangName(); String getNativeName(); Locale getLocale(); static Language getByLangCode(String langCode); static Language getByLangCodeLenient(String langCode); static Language getByFullLangName(String language); static boolean hasLangCode(String langCode); static Language getById(int id); String getDomain(); LanguageInfo getLanguageInfo(); @Override int compareTo(Language language); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final String LANGUAGE_TSV; static Language[] LANGUAGES; static Language WIKIDATA; static final Language EN; static final Language DE; static final Language FR; static final Language NL; static final Language IT; static final Language PL; static final Language ES; static final Language RU; static final Language JA; static final Language PT; static final Language ZH; static final Language SV; static final Language VI; static final Language UK; static final Language CA; static final Language NO; static final Language FI; static final Language CS; static final Language HU; static final Language KO; static final Language FA; static final Language ID; static final Language TR; static final Language AR; static final Language RO; static final Language SK; static final Language EO; static final Language DA; static final Language SR; static final Language LT; static final Language MS; static final Language HE; static final Language EU; static final Language SL; static final Language BG; static final Language KK; static final Language VO; static final Language HR; static final Language WAR; static final Language HI; static final Language ET; static final Language GL; static final Language AZ; static final Language NN; static final Language SIMPLE; static final Language LA; static final Language EL; static final Language TH; static final Language NEW; static final Language ROA_RUP; static final Language OC; static final Language SH; static final Language KA; static final Language MK; static final Language TL; static final Language HT; static final Language PMS; static final Language TE; static final Language TA; static final Language BE_X_OLD; static final Language BE; static final Language BR; static final Language CEB; static final Language LV; static final Language SQ; static final Language JV; static final Language MG; static final Language CY; static final Language LB; static final Language MR; static final Language IS; static final Language BS; static final Language YO; static final Language AN; static final Language LMO; static final Language HY; static final Language FY; static final Language BPY; static final Language ML; static final Language PNB; static final Language SW; static final Language BN; static final Language IO; static final Language AF; static final Language GU; static final Language ZH_YUE; static final Language NE; static final Language NDS; static final Language UR; static final Language KU; static final Language UZ; static final Language AST; static final Language SCN; static final Language SU; static final Language QU; static final Language DIQ; static final Language BA; static final Language TT; static final Language MY; static final Language GA; static final Language CV; static final Language IA; static final Language NAP; static final Language BAT_SMG; static final Language MAP_BMS; static final Language WA; static final Language ALS; static final Language KN; static final Language AM; static final Language GD; static final Language BUG; static final Language TG; static final Language ZH_MIN_NAN; static final Language YI; static final Language VEC; static final Language SCO; static final Language HIF; static final Language ROA_TARA; static final Language OS; static final Language ARZ; static final Language NAH; static final Language MZN; static final Language SAH; static final Language KY; static final Language MN; static final Language SA; static final Language PAM; static final Language HSB; static final Language LI; static final Language MI; static final Language SI; static final Language CO; static final Language CKB; static final Language GAN; static final Language GLK; static final Language BO; static final Language FO; static final Language BAR; static final Language BCL; static final Language ILO; static final Language MRJ; static final Language SE; static final Language FIU_VRO; static final Language NDS_NL; static final Language TK; static final Language VLS; static final Language PS; static final Language GV; static final Language RUE; static final Language DV; static final Language NRM; static final Language PAG; static final Language PA; static final Language KOI; static final Language RM; static final Language KM; static final Language KV; static final Language UDM; static final Language CSB; static final Language MHR; static final Language FUR; static final Language MT; static final Language ZEA; static final Language WUU; static final Language LIJ; static final Language UG; static final Language LAD; static final Language PI; static final Language XMF; static final Language SC; static final Language BH; static final Language ZH_CLASSICAL; static final Language OR; static final Language NOV; static final Language KSH; static final Language ANG; static final Language SO; static final Language KW; static final Language STQ; static final Language NV; static final Language HAK; static final Language FRR; static final Language AY; static final Language FRP; static final Language EXT; static final Language SZL; static final Language PCD; static final Language IE; static final Language GAG; static final Language HAW; static final Language XAL; static final Language LN; static final Language RW; static final Language PDC; static final Language PFL; static final Language VEP; static final Language KRC; static final Language CRH; static final Language EML; static final Language GN; static final Language ACE; static final Language TO; static final Language CE; static final Language KL; static final Language ARC; static final Language MYV; static final Language DSB; static final Language AS; static final Language BJN; static final Language PAP; static final Language TPI; static final Language LBE; static final Language MDF; static final Language WO; static final Language JBO; static final Language KAB; static final Language SN; static final Language AV; static final Language CBK_ZAM; static final Language TY; static final Language SRN; static final Language KBD; static final Language LO; static final Language LEZ; static final Language AB; static final Language MWL; static final Language LTG; static final Language NA; static final Language IG; static final Language KG; static final Language TET; static final Language ZA; static final Language KAA; static final Language NSO; static final Language ZU; static final Language RMY; static final Language CU; static final Language TN; static final Language CHR; static final Language CHY; static final Language GOT; static final Language SM; static final Language BI; static final Language MO; static final Language BM; static final Language IU; static final Language PIH; static final Language IK; static final Language SS; static final Language SD; static final Language PNT; static final Language CDO; static final Language EE; static final Language HA; static final Language TI; static final Language BXR; static final Language TS; static final Language OM; static final Language KS; static final Language KI; static final Language VE; static final Language SG; static final Language RN; static final Language CR; static final Language DZ; static final Language LG; static final Language AK; static final Language FF; static final Language TUM; static final Language FJ; static final Language ST; static final Language TW; static final Language XH; static final Language CH; static final Language NY; static final Language NG; static final Language II; static final Language CHO; static final Language MH; static final Language AA; static final Language KJ; static final Language HO; static final Language MUS; static final Language KR; static final Language HZ; }