@Test public void testPut() { content.put(englishLocale.getDisplayLanguage(), english); assertEquals(2, content.size()); content.put(italianLocale.getDisplayLanguage(), italian); assertEquals(3, content.size()); assertTrue(content.supportsLanguage(italian)); }
public T put(T content, Language language) { if (content == null) throw new IllegalArgumentException("Content must not be null"); if (language == null) throw new IllegalArgumentException("Language must not be null"); if (this.content.size() == 0) this.originalLanguage = language; enableLanguage(language); return this.content.put(language, content); }
LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public T put(T content, Language language) { if (content == null) throw new IllegalArgumentException("Content must not be null"); if (language == null) throw new IllegalArgumentException("Language must not be null"); if (this.content.size() == 0) this.originalLanguage = language; enableLanguage(language); return this.content.put(language, content); } }
LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public T put(T content, Language language) { if (content == null) throw new IllegalArgumentException("Content must not be null"); if (language == null) throw new IllegalArgumentException("Language must not be null"); if (this.content.size() == 0) this.originalLanguage = language; enableLanguage(language); return this.content.put(language, content); } LocalizableContent();  LocalizableContent(Language language);  LocalizableContent(LocalizableObject localizable); }
LocalizableContent extends LocalizableObject implements LocalizationListener, Cloneable { public T put(T content, Language language) { if (content == null) throw new IllegalArgumentException("Content must not be null"); if (language == null) throw new IllegalArgumentException("Language must not be null"); if (this.content.size() == 0) this.originalLanguage = language; enableLanguage(language); return this.content.put(language, content); } 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 T put(T content, Language language) { if (content == null) throw new IllegalArgumentException("Content must not be null"); if (language == null) throw new IllegalArgumentException("Language must not be null"); if (this.content.size() == 0) this.originalLanguage = language; enableLanguage(language); return this.content.put(language, content); } 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);  }