@Test public void testToString() { assertEquals(englishLocale.getDisplayLanguage(englishLocale), content.toString()); }
public String toString(Language language, boolean force) { if (language == null) throw new IllegalArgumentException("Language must not be null"); if (content.size() == 0) return null; T c = content.get(language); if (c == null && !force) c = content.get(resolveLanguage()); return (c != null) ? c.toString() : null; }
LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public String toString(Language language, boolean force) { if (language == null) throw new IllegalArgumentException("Language must not be null"); if (content.size() == 0) return null; T c = content.get(language); if (c == null && !force) c = content.get(resolveLanguage()); return (c != null) ? c.toString() : null; } }
LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public String toString(Language language, boolean force) { if (language == null) throw new IllegalArgumentException("Language must not be null"); if (content.size() == 0) return null; T c = content.get(language); if (c == null && !force) c = content.get(resolveLanguage()); return (c != null) ? c.toString() : null; } LocalizableContent();  LocalizableContent(Language language);  LocalizableContent(LocalizableObject localizable); }
LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public String toString(Language language, boolean force) { if (language == null) throw new IllegalArgumentException("Language must not be null"); if (content.size() == 0) return null; T c = content.get(language); if (c == null && !force) c = content.get(resolveLanguage()); return (c != null) ? c.toString() : null; } LocalizableContent();  LocalizableContent(Language language);  LocalizableContent(LocalizableObject localizable); void clear(); boolean isEmpty(); int size(); Collection<T> values(); @Override void disableLanguage(Language language); T put(T content, Language language); T get(); T get(Language language); T get(Language language, boolean force); void switchedTo(Language language, Language requestedLanguage); @SuppressWarnings("unchecked") Object clone(); String toString(Language language, boolean force); }
LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public String toString(Language language, boolean force) { if (language == null) throw new IllegalArgumentException("Language must not be null"); if (content.size() == 0) return null; T c = content.get(language); if (c == null && !force) c = content.get(resolveLanguage()); return (c != null) ? c.toString() : null; } LocalizableContent();  LocalizableContent(Language language);  LocalizableContent(LocalizableObject localizable); void clear(); boolean isEmpty(); int size(); Collection<T> values(); @Override void disableLanguage(Language language); T put(T content, Language language); T get(); T get(Language language); T get(Language language, boolean force); void switchedTo(Language language, Language requestedLanguage); @SuppressWarnings("unchecked") Object clone(); String toString(Language language, boolean force);  }