updated javadoc for TextData.putText(XXX), #1515
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 4 Jan 2011 20:51:31 +0000 (20:51 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 4 Jan 2011 20:51:31 +0000 (20:51 +0000)
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/TextData.java

index 7d73ce2da539c3f1d320df84f50f0dcfd277c1f0..9fc981f798510713bd0fe3111b4df94459bb4d28 100644 (file)
@@ -10,6 +10,7 @@
 package eu.etaxonomy.cdm.model.description;
 
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.List;
 import java.util.Map;
 
@@ -246,9 +247,9 @@ public class TextData extends DescriptionElementBase implements IMultiLanguageTe
         * @param text          the string representing the content of the text data
         *                                      in a particular language
         * @param language      the language in which the text string is formulated
-        * @return                      the language string
         * @see                         #getMultilanguageText()
         * @see                         #putText(LanguageString)
+        * @return                      the language string
         */
        public LanguageString putText(String text, Language language) {
                fixHashMapHibernateBug();
@@ -276,14 +277,15 @@ public class TextData extends DescriptionElementBase implements IMultiLanguageTe
        }
        /**
         * Adds a translated {@link LanguageString text in a particular language}
-        * to the multilanguage text representing the content of <i>this</i> text data.
+        * to the multi-language text representing the content of <i>this</i> text data.
         * The given language string will be returned. 
         * 
         * @param languageString        the language string representing the content of
         *                                                      the text data in a particular language
-        * @return                                      the language string
         * @see                                         #getMultilanguageText()
         * @see                                         #putText(String, Language)
+        * @see                                         HashMap#put(Object, Object)
+        * @return                                      the previous language string associated with key, or null if there was no mapping for key
         */
        public LanguageString putText(LanguageString languageString) {