]> granicus.if.org Git - icu/commitdiff
ICU-21480 BRS#18 ICU4J promotions to stable
authorCraig Cornelius <cwcornelius@gmail.com>
Tue, 9 Mar 2021 16:35:20 +0000 (08:35 -0800)
committerCraig Cornelius <cwcornelius@gmail.com>
Tue, 9 Mar 2021 21:14:45 +0000 (13:14 -0800)
icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/text/CurrencyDisplayNames.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/DateTimePatternGenerator.java
icu4j/main/classes/core/src/com/ibm/icu/text/ListFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/util/Currency.java
icu4j/main/classes/core/src/com/ibm/icu/util/LocaleMatcher.java
icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java

index 99e9ae374cab20f4585aa4fc818ac317f91037b6..7a1f6c0b48e54873ec376cb98e01db52f1592f06 100644 (file)
@@ -212,7 +212,7 @@ public final class NumberFormatter {
          * <p>
          * Behavior of this option with non-currency units is not defined at this time.
          *
-         * @draft ICU 67
+         * @stable ICU 67
          * @see NumberFormatter
          */
         FORMAL,
@@ -224,7 +224,7 @@ public final class NumberFormatter {
          * <p>
          * Behavior of this option with non-currency units is not defined at this time.
          *
-         * @draft ICU 67
+         * @stable ICU 67
          * @see NumberFormatter
          */
         VARIANT,
index 811e868e6a8ac2d1510a4ffd8e1f9f21d751b62d..c8460b42cc324c5c7a7ee66c8aaa5abcc527ec46 100644 (file)
@@ -149,7 +149,7 @@ public abstract class CurrencyDisplayNames {
      *
      * @param isoCode the three-letter ISO code.
      * @return the formal symbol.
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public abstract String getFormalSymbol(String isoCode);
 
@@ -164,7 +164,7 @@ public abstract class CurrencyDisplayNames {
      *
      * @param isoCode the three-letter ISO code.
      * @return the variant symbol.
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public abstract String getVariantSymbol(String isoCode);
 
index 5d5a9d07842a66460e77cae42927538af978c903..6cd03d6456702d6a616fb71ad4906b48df2850aa 100644 (file)
@@ -537,30 +537,30 @@ public abstract class DateFormat extends UFormat {
 
     /**
      * Hour Cycle
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public enum HourCycle {
         /**
          * hour in am/pm (0~11)
-         * @draft ICU 67
+         * @stable ICU 67
          */
         HOUR_CYCLE_11,
 
         /**
          * hour in am/pm (1~12)
-         * @draft ICU 67
+         * @stable ICU 67
          */
         HOUR_CYCLE_12,
 
         /**
          * hour in day (0~23)
-         * @draft ICU 67
+         * @stable ICU 67
          */
         HOUR_CYCLE_23,
 
         /**
          * hour in day (1~24)
-         * @draft ICU 67
+         * @stable ICU 67
          */
         HOUR_CYCLE_24;
     };
index 8a09b68ff6b84215d812d0863add5155ef66ca3c..528eed80e01f099870e7856d934b307c9b3d0ddb 100644 (file)
@@ -1357,7 +1357,7 @@ public class DateTimePatternGenerator implements Freezable<DateTimePatternGenera
 
     /**
      * Return the default hour cycle.
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public DateFormat.HourCycle getDefaultHourCycle() {
       switch(getDefaultHourFormatChar()) {
index 9baff8d7241ecec69c1c05902c3c59cc5cf876a8..fee273c82e246ab551837686e9203655f8f0688d 100644 (file)
@@ -53,13 +53,13 @@ final public class ListFormatter {
     /**
      * Type of meaning expressed by the list.
      *
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public enum Type {
         /**
          * Conjunction formatting, e.g. "Alice, Bob, Charlie, and Delta".
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         AND,
 
@@ -67,14 +67,14 @@ final public class ListFormatter {
          * Disjunction (or alternative, or simply one of) formatting, e.g.
          * "Alice, Bob, Charlie, or Delta".
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         OR,
 
         /**
          * Formatting of a list of values with units, e.g. "5 pounds, 12 ounces".
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         UNITS
     };
@@ -82,27 +82,27 @@ final public class ListFormatter {
     /**
      * Verbosity level of the list patterns.
      *
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public enum Width {
         /**
          * Use list formatting with full words (no abbreviations) when possible.
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         WIDE,
 
         /**
          * Use list formatting of typical length.
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         SHORT,
 
         /**
          * Use list formatting of the shortest possible length.
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         NARROW,
     };
@@ -110,7 +110,7 @@ final public class ListFormatter {
     /**
      * Class for span fields in FormattedList.
      *
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static final class SpanField extends UFormat.SpanField {
         private static final long serialVersionUID = 3563544214705634403L;
@@ -121,7 +121,7 @@ final public class ListFormatter {
          * Instances of LIST_SPAN should have an associated value, the index
          * within the input list that is represented by the span.
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         public static final SpanField LIST_SPAN = new SpanField("list-span");
 
@@ -147,20 +147,20 @@ final public class ListFormatter {
 
     /**
      * Field selectors for format fields defined by ListFormatter.
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static final class Field extends Format.Field {
         private static final long serialVersionUID = -8071145668708265437L;
 
         /**
          * The literal text in the result which came from the resources.
-         * @draft ICU 67
+         * @stable ICU 67
          */
         public static Field LITERAL = new Field("literal");
 
         /**
          * The element text in the result which came from the input strings.
-         * @draft ICU 67
+         * @stable ICU 67
          */
         public static Field ELEMENT = new Field("element");
 
@@ -191,7 +191,7 @@ final public class ListFormatter {
      *
      * Not intended for public subclassing.
      *
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static final class FormattedList implements FormattedValue {
         private final FormattedStringBuilder string;
@@ -202,7 +202,7 @@ final public class ListFormatter {
 
         /**
          * {@inheritDoc}
-         * @draft ICU 67
+         * @stable ICU 67
          */
         @Override
         public String toString() {
@@ -211,7 +211,7 @@ final public class ListFormatter {
 
         /**
          * {@inheritDoc}
-         * @draft ICU 67
+         * @stable ICU 67
          */
         @Override
         public int length() {
@@ -220,7 +220,7 @@ final public class ListFormatter {
 
         /**
          * {@inheritDoc}
-         * @draft ICU 67
+         * @stable ICU 67
          */
         @Override
         public char charAt(int index) {
@@ -229,7 +229,7 @@ final public class ListFormatter {
 
         /**
          * {@inheritDoc}
-         * @draft ICU 67
+         * @stable ICU 67
          */
         @Override
         public CharSequence subSequence(int start, int end) {
@@ -238,7 +238,7 @@ final public class ListFormatter {
 
         /**
          * {@inheritDoc}
-         * @draft ICU 67
+         * @stable ICU 67
          */
         @Override
         public <A extends Appendable> A appendTo(A appendable) {
@@ -247,7 +247,7 @@ final public class ListFormatter {
 
         /**
          * {@inheritDoc}
-         * @draft ICU 67
+         * @stable ICU 67
          */
         @Override
         public boolean nextPosition(ConstrainedFieldPosition cfpos) {
@@ -256,7 +256,7 @@ final public class ListFormatter {
 
         /**
          * {@inheritDoc}
-         * @draft ICU 67
+         * @stable ICU 67
          */
         @Override
         public AttributedCharacterIterator toCharacterIterator() {
@@ -310,7 +310,7 @@ final public class ListFormatter {
      * @param locale
      *            the locale in question.
      * @return ListFormatter
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static ListFormatter getInstance(ULocale locale, Type type, Width width) {
         String styleName = typeWidthToStyleString(type, width);
@@ -326,7 +326,7 @@ final public class ListFormatter {
      * @param locale
      *            the locale in question.
      * @return ListFormatter
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static ListFormatter getInstance(Locale locale, Type type, Width width) {
         return getInstance(ULocale.forLocale(locale), type, width);
@@ -397,7 +397,7 @@ final public class ListFormatter {
      * @param items
      *            items to format. The toString() method is called on each.
      * @return items formatted into a FormattedList
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public FormattedList formatToValue(Object... items) {
         return formatToValue(Arrays.asList(items));
@@ -411,7 +411,7 @@ final public class ListFormatter {
      * @param items
      *            items to format. The toString() method is called on each.
      * @return items formatted into a FormattedList
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public FormattedList formatToValue(Collection<?> items) {
         return formatImpl(items, true).toValue();
index 2c40e557620b14b42b7ade143888c52593507cb3..03bcc1f8f547bd7f687cfb9b5f221d46f6324127 100644 (file)
@@ -106,7 +106,7 @@ public class Currency extends MeasureUnit {
      * but it always takes the form used in formal settings such as banking;
      * for example, "NT$" instead of "$" for TWD in zh-TW.
      *
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static final int FORMAL_SYMBOL_NAME = 4;
 
@@ -116,7 +116,7 @@ public class Currency extends MeasureUnit {
      * The variant symbol for a currency is an alternative symbol that is not
      * necessarily as widely used as the regular symbol.
      *
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static final int VARIANT_SYMBOL_NAME = 5;
 
index 07ae8882bd5610c7e0df1fc545f17a6d4b6e46cf..84bcc8876f350a5db0c3bee71d0dc067869d6816 100644 (file)
@@ -164,20 +164,20 @@ public final class LocaleMatcher {
      * but not if it is merely a fallback.
      *
      * @see LocaleMatcher.Builder#setDirection(LocaleMatcher.Direction)
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public enum Direction {
         /**
          * Locale matching includes one-way matches such as Breton→French. (default)
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         WITH_ONE_WAY,
         /**
          * Locale matching limited to two-way matches including e.g. Danish↔Norwegian
          * but ignoring one-way matches.
          *
-         * @draft ICU 67
+         * @stable ICU 67
          */
         ONLY_TWO_WAY
     }
@@ -522,7 +522,7 @@ public final class LocaleMatcher {
          *
          * @param direction the match direction to set.
          * @return this Builder object
-         * @draft ICU 67
+         * @stable ICU 67
          */
         public Builder setDirection(Direction direction) {
             this.direction = direction;
index 5727b377c055059742057ae91e1c20379c5aa18d..7798ead97eafa685f7140f71000f8279af98e5e4 100644 (file)
@@ -501,7 +501,7 @@ public final class ULocale implements Serializable, Comparable<ULocale> {
      * Creates a ULocale from the locale by first canonicalizing the locale according to CLDR.
      * @param locale the ULocale to canonicalize
      * @return the ULocale created from the canonical version of the ULocale.
-     * @draft ICU 67
+     * @stable ICU 67
      */
     public static ULocale createCanonical(ULocale locale) {
         return createCanonical(locale.getName());