@Test public void testSwitchToLanguageBoolean() { try { content.switchTo(italian, true); fail("Language switch to unresolvable language did not fail"); } catch (IllegalStateException e) { } }
public Language switchTo(Language language) { return switchTo(language, false); }
LocalizableObject implements Localizable { public Language switchTo(Language language) { return switchTo(language, false); } }
LocalizableObject implements Localizable { public Language switchTo(Language language) { return switchTo(language, false); } LocalizableObject();  LocalizableObject(Language defaultLanguage); }
LocalizableObject implements Localizable { public Language switchTo(Language language) { return switchTo(language, false); } LocalizableObject();  LocalizableObject(Language defaultLanguage); void addLocalizationListener(LocalizationListener listener); void removeLocalizationListener(LocalizationListener listener); void enableLanguage(Language language); void disableLanguage(Language language); Language switchTo(Language language); Language switchTo(Language language, boolean force); Language getLanguage(); void setLanguageResolution(LanguageResolution behavior); LanguageResolution getLanguageResolution(); void setDefaultLanguage(Language language); Language getDefaultLanguage(); Language getOriginalLanguage(); void setOriginalLanguage(Language language); boolean supportsLanguage(Language language); Set<Language> languages(); int compareTo(Localizable o, Language l); String toString(); String toString(Language language); String toString(Language language, boolean force); }
LocalizableObject implements Localizable { public Language switchTo(Language language) { return switchTo(language, false); } LocalizableObject();  LocalizableObject(Language defaultLanguage); void addLocalizationListener(LocalizationListener listener); void removeLocalizationListener(LocalizationListener listener); void enableLanguage(Language language); void disableLanguage(Language language); Language switchTo(Language language); Language switchTo(Language language, boolean force); Language getLanguage(); void setLanguageResolution(LanguageResolution behavior); LanguageResolution getLanguageResolution(); void setDefaultLanguage(Language language); Language getDefaultLanguage(); Language getOriginalLanguage(); void setOriginalLanguage(Language language); boolean supportsLanguage(Language language); Set<Language> languages(); int compareTo(Localizable o, Language l); String toString(); String toString(Language language); String toString(Language language, boolean force);  }