public static void removeKey(LanguageKey key) { String _key = key.getKey(); for (Language language : languageList) language.removeValue(_key); keyList.remove(key); keyById.remove(key.getKeyId()); keyByKey.remove(_key); }
public static void removeLanguage(Language language) { languageList.remove(language); languageById.remove(language.getLanguageId()); languageByCode.remove(language.getCode()); }
public static void addLanguage(Language language) { languageList.add(language); languageById.put(language.getLanguageId(), language); languageByCode.put(language.getCode(), language); }