]> granicus.if.org Git - icu/commitdiff
ICU-10488 Added @provisional to draft APIs, and supplied missing java doc commment...
authorYoshito Umaoka <y.umaoka@gmail.com>
Tue, 10 Mar 2015 22:27:08 +0000 (22:27 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Tue, 10 Mar 2015 22:27:08 +0000 (22:27 +0000)
X-SVN-Rev: 37206

icu4j/main/classes/core/src/com/ibm/icu/text/LocaleDisplayNames.java

index 1d878718a5807705a0f5a5b12e1bb0de26f1d01e..8053590889dc920163553071ba9e4e16f6d60a15 100644 (file)
@@ -269,6 +269,7 @@ public abstract class LocaleDisplayNames {
      * @return an ordered list of UiListItems. 
      * @throws IllformedLocaleException if any of the locales in localeSet are malformed.
      * @draft ICU 55
+     * @provisional This API might change or be removed in a future release.
      */ 
     public List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { 
         return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); 
@@ -282,33 +283,39 @@ public abstract class LocaleDisplayNames {
      * @return an ordered list of UiListItems. 
      * @throws IllformedLocaleException if any of the locales in localeSet are malformed.
      * @draft ICU 55
-     */ 
+     * @provisional This API might change or be removed in a future release.
+     */
     public abstract List<UiListItem> getUiListCompareWholeItems(Set<ULocale> localeSet, Comparator<UiListItem> comparator);
 
     /** 
      * Struct-like class used to return information for constructing a UI list, each corresponding to a locale. 
      * @draft ICU 55
-     */ 
+     * @provisional This API might change or be removed in a future release.
+     */
     public static class UiListItem { 
         /** 
          * Returns the minimized locale for an input locale, such as sr-Cyrl → sr 
          * @draft ICU 55
-         */ 
+         * @provisional This API might change or be removed in a future release.
+         */
         public final ULocale minimized; 
         /** 
          * Returns the modified locale for an input locale, such as sr → sr-Cyrl, where there is also an sr-Latn in the list 
          * @draft ICU 55
-         */ 
+         * @provisional This API might change or be removed in a future release.
+         */
         public final ULocale modified; 
         /** 
          * Returns the name of the modified locale in the display locale, such as "Englisch (VS)" (for 'en-US', where the display locale is 'de'). 
          * @draft ICU 55
-         */ 
+         * @provisional This API might change or be removed in a future release.
+         */
         public final String nameInDisplayLocale; 
         /** 
          * Returns the name of the modified locale in itself, such as "English (US)" (for 'en-US'). 
          * @draft ICU 55
-         */ 
+         * @provisional This API might change or be removed in a future release.
+         */
         public final String nameInSelf; 
 
         /**  
@@ -318,7 +325,8 @@ public abstract class LocaleDisplayNames {
          * @param nameInDisplayLocale name of the modified locale in the display locale 
          * @param nameInSelf name of the modified locale in itself 
          * @draft ICU 55
-         */ 
+         * @provisional This API might change or be removed in a future release.
+         */
         public UiListItem(ULocale minimized, ULocale modified, String nameInDisplayLocale, String nameInSelf) { 
             this.minimized = minimized; 
             this.modified = modified; 
@@ -326,6 +334,12 @@ public abstract class LocaleDisplayNames {
             this.nameInSelf = nameInSelf; 
         } 
 
+        /**
+         * {@inheritDoc}
+         * 
+         * @draft ICU 55
+         * @provisional This API might change or be removed in a future release.
+         */
         @Override 
         public boolean equals(Object obj) { 
             UiListItem other = (UiListItem)obj; 
@@ -335,11 +349,23 @@ public abstract class LocaleDisplayNames {
                     && modified.equals(other.modified); 
         } 
 
+        /**
+         * {@inheritDoc}
+         * 
+         * @draft ICU 55
+         * @provisional This API might change or be removed in a future release.
+         */
         @Override 
         public int hashCode() { 
             return modified.hashCode() ^ nameInDisplayLocale.hashCode(); 
         } 
 
+        /**
+         * {@inheritDoc}
+         * 
+         * @draft ICU 55
+         * @provisional This API might change or be removed in a future release.
+         */
         @Override 
         public String toString() { 
             return "{" + minimized + ", " + modified + ", " + nameInDisplayLocale + ", " + nameInSelf  + "}"; 
@@ -352,6 +378,7 @@ public abstract class LocaleDisplayNames {
          * @param comparator (meant for strings, but because Java Collator doesn't have &lt;String>...)
          * @return UiListItem comparator
          * @draft ICU 55
+         * @provisional This API might change or be removed in a future release.
          */
         public static Comparator<UiListItem> getComparator(Comparator<Object> comparator, boolean inSelf) {
             return new UiListItemComparator(comparator, inSelf);