]> granicus.if.org Git - icu/commitdiff
ICU-21900 ICU4J: Promote all '@draft ICU 69' to '@stable'
authorCraig Cornelius <cwcornelius@gmail.com>
Wed, 23 Feb 2022 17:15:45 +0000 (09:15 -0800)
committerCraig Cornelius <cwcornelius@gmail.com>
Wed, 2 Mar 2022 18:47:00 +0000 (10:47 -0800)
icu4j/main/classes/core/src/com/ibm/icu/number/FractionPrecision.java
icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/number/NumberRangeFormatter.java
icu4j/main/classes/core/src/com/ibm/icu/number/Precision.java
icu4j/main/classes/core/src/com/ibm/icu/util/BasicTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/MeasureUnit.java
icu4j/main/classes/core/src/com/ibm/icu/util/RuleBasedTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/SimpleTimeZone.java
icu4j/main/classes/core/src/com/ibm/icu/util/VTimeZone.java

index 6a10bdaa7744d089cd70fea7c4ebf15d2cba9ae1..a4c22a05e7d6d239b4155e03b9e2d30cc58cdfd7 100644 (file)
@@ -31,7 +31,7 @@ public abstract class FractionPrecision extends Precision {
      *            How to disambiguate between fraction digits and significant digits.
      * @return A precision for chaining or passing to the NumberFormatter precision() setter.
      *
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public Precision withSignificantDigits(
             int minSignificantDigits,
index 715c0f28ef6b226c5b6147f89aa1ff5a156d4ee5..3cc536a423f06db76b0d484c128475e458fc7fb0 100644 (file)
@@ -110,20 +110,20 @@ public final class NumberFormatter {
      * <p>Here, RELAXED favors Max-Fraction and STRICT favors Max-Significant. Note that this larger
      * number caused the two modes to favor the opposite result.
      *
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public static enum RoundingPriority {
         /**
          * Favor greater precision by relaxing one of the rounding constraints.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         RELAXED,
 
         /**
          * Favor adherence to all rounding constraints by producing lower precision.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         STRICT,
     }
@@ -437,14 +437,14 @@ public final class NumberFormatter {
         /**
          * Same as AUTO, but do not show the sign on negative zero.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         NEGATIVE,
 
         /**
          * Same as ACCOUNTING, but do not show the sign on negative zero.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         ACCOUNTING_NEGATIVE,
     }
@@ -488,20 +488,20 @@ public final class NumberFormatter {
      * <li>HIDE_IF_WHOLE: 0.90, 1, 1.10
      * </ul>
      *
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public static enum TrailingZeroDisplay {
         /**
          * Display trailing zeros according to the settings for minimum fraction and significant digits.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         AUTO,
 
         /**
          * Same as AUTO, but hide trailing zeros after the decimal separator if they are all zero.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         HIDE_IF_WHOLE,
     }
index 5c022e6c8c38e13bc227d74c1b3c308ce0530014..e36e82ebeb1f5ee110715fc972bb5fd5b8b7b947 100644 (file)
@@ -158,7 +158,7 @@ public abstract class NumberRangeFormatter {
     /**
      * Class for span fields in FormattedNumberRange.
      *
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public static final class SpanField extends UFormat.SpanField {
         private static final long serialVersionUID = 8750397196515368729L;
@@ -169,7 +169,7 @@ public abstract class NumberRangeFormatter {
          * Instances of NUMBER_RANGE_SPAN should have an associated value, the index within the input
          * list that is represented by the span.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         public static final SpanField NUMBER_RANGE_SPAN = new SpanField("number-range-span");
 
index f98594546d28e9479c590a64d4a17cb8015e5d5b..6369c48e241ea93dc7b4051e690dd40d6d9cf2ad 100644 (file)
@@ -344,7 +344,7 @@ public abstract class Precision {
      * when the number is an integer, use HIDE_IF_WHOLE.
      *
      * @param trailingZeroDisplay Option to configure the display of trailing zeros.
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public Precision trailingZeroDisplay(TrailingZeroDisplay trailingZeroDisplay) {
         Precision result = this.createCopy();
index 7e347d74b468e8896f02b6b870d1ff1eb3c1aa65..cb78582a8b04aec7a7d7966054feae9dd1499d45 100644 (file)
@@ -540,19 +540,19 @@ public abstract class BasicTimeZone extends TimeZone {
      * to specify how to interpret an input time when it does not exist, or when it is ambiguous,
      * around a time zone transition.
      *
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public static enum LocalOption {
         /**
          * An input time is always interpreted as local time before
          * a time zone transition.
-         * @draft ICU 69
+         * @stable ICU 69
          */
         FORMER(0x04),
         /**
          * An input time is always interpreted as local time after
          * a time zone transition.
-         * @draft ICU 69
+         * @stable ICU 69
          */
         LATTER(0x0C),
         /**
@@ -561,7 +561,7 @@ public abstract class BasicTimeZone extends TimeZone {
          * sides of a time zone transition are standard time,
          * or daylight saving time, the local time before the
          * transition is used.
-         * @draft ICU 69
+         * @stable ICU 69
          */
         STANDARD_FORMER(0x05),
         /**
@@ -570,7 +570,7 @@ public abstract class BasicTimeZone extends TimeZone {
          * sides of a time zone transition are standard time,
          * or daylight saving time, the local time after the
          * transition is used.
-         * @draft ICU 69
+         * @stable ICU 69
          */
         STANDARD_LATTER(0x0D),
         /**
@@ -579,7 +579,7 @@ public abstract class BasicTimeZone extends TimeZone {
          * sides of a time zone transition are standard time,
          * or daylight saving time, the local time before the
          * transition is used.
-         * @draft ICU 69
+         * @stable ICU 69
          */
         DAYLIGHT_FORMER(0x07),
         /**
@@ -588,7 +588,7 @@ public abstract class BasicTimeZone extends TimeZone {
          * sides of a time zone transition are standard time,
          * or daylight saving time, the local time after the
          * transition is used.
-         * @draft ICU 69
+         * @stable ICU 69
          */
         DAYLIGHT_LATTER(0x0F);
 
@@ -662,7 +662,7 @@ public abstract class BasicTimeZone extends TimeZone {
 
     /**
      * {@icu} Returns time zone offsets from local wall time.
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public void getOffsetFromLocal(long date,
             LocalOption nonExistingTimeOpt, LocalOption duplicatedTimeOpt, int[] offsets) {
index 85f15c437ec1e2796b45435e00e930dd056af2be..86181cbe1f38e9024bc988276fb910821117b8d0 100644 (file)
@@ -114,210 +114,210 @@ public class MeasureUnit implements Serializable {
     /**
      * Enumeration for SI and binary prefixes, e.g. "kilo-", "nano-", "mebi-".
      *
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public enum MeasurePrefix {
 
         /**
          * SI prefix: yotta, 10^24.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         YOTTA(24, "yotta", 10),
 
         /**
          * SI prefix: zetta, 10^21.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         ZETTA(21, "zetta", 10),
 
         /**
          * SI prefix: exa, 10^18.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         EXA(18, "exa", 10),
 
         /**
          * SI prefix: peta, 10^15.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         PETA(15, "peta", 10),
 
         /**
          * SI prefix: tera, 10^12.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         TERA(12, "tera", 10),
 
         /**
          * SI prefix: giga, 10^9.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         GIGA(9, "giga", 10),
 
         /**
          * SI prefix: mega, 10^6.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         MEGA(6, "mega", 10),
 
         /**
          * SI prefix: kilo, 10^3.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         KILO(3, "kilo", 10),
 
         /**
          * SI prefix: hecto, 10^2.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         HECTO(2, "hecto", 10),
 
         /**
          * SI prefix: deka, 10^1.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         DEKA(1, "deka", 10),
 
         /**
          * The absence of an SI prefix.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         ONE(0, "", 10),
 
         /**
          * SI prefix: deci, 10^-1.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         DECI(-1, "deci", 10),
 
         /**
          * SI prefix: centi, 10^-2.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         CENTI(-2, "centi", 10),
 
         /**
          * SI prefix: milli, 10^-3.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         MILLI(-3, "milli", 10),
 
         /**
          * SI prefix: micro, 10^-6.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         MICRO(-6, "micro", 10),
 
         /**
          * SI prefix: nano, 10^-9.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         NANO(-9, "nano", 10),
 
         /**
          * SI prefix: pico, 10^-12.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         PICO(-12, "pico", 10),
 
         /**
          * SI prefix: femto, 10^-15.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         FEMTO(-15, "femto", 10),
 
         /**
          * SI prefix: atto, 10^-18.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         ATTO(-18, "atto", 10),
 
         /**
          * SI prefix: zepto, 10^-21.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         ZEPTO(-21, "zepto", 10),
 
         /**
          * SI prefix: yocto, 10^-24.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         YOCTO(-24, "yocto", 10),
 
         /**
          * IEC binary prefix: kibi, 1024^1.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         KIBI(1, "kibi", 1024),
 
         /**
          * IEC binary prefix: mebi, 1024^2.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         MEBI(2, "mebi", 1024),
 
         /**
          * IEC binary prefix: gibi, 1024^3.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         GIBI(3, "gibi", 1024),
 
         /**
          * IEC binary prefix: tebi, 1024^4.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         TEBI(4, "tebi", 1024),
 
         /**
          * IEC binary prefix: pebi, 1024^5.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         PEBI(5, "pebi", 1024),
 
         /**
          * IEC binary prefix: exbi, 1024^6.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         EXBI(6, "exbi", 1024),
 
         /**
          * IEC binary prefix: zebi, 1024^7.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         ZEBI(7, "zebi", 1024),
 
         /**
          * IEC binary prefix: yobi, 1024^8.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         YOBI(8, "yobi", 1024);
 
@@ -347,7 +347,7 @@ public class MeasureUnit implements Serializable {
          * - if the prefix is "centi", the base will be 10.
          * - if the prefix is "gibi", the base will be 1024.
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         public int getBase() {
             return base;
@@ -358,7 +358,7 @@ public class MeasureUnit implements Serializable {
          * - if the prefix is "centi", the power will be -2.
          * - if the prefix is "gibi", the power will be 3 (for base 1024).
          *
-         * @draft ICU 69
+         * @stable ICU 69
          */
         public int getPower() {
             return power;
@@ -479,7 +479,7 @@ public class MeasureUnit implements Serializable {
      * @param prefix The prefix, from MeasurePrefix.
      * @return A new SINGLE unit.
      * @throws UnsupportedOperationException if this unit is a COMPOUND or MIXED unit.
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public MeasureUnit withPrefix(MeasurePrefix prefix) {
         SingleUnitImpl singleUnit = getSingleUnitImpl();
@@ -496,7 +496,7 @@ public class MeasureUnit implements Serializable {
      *
      * @return The prefix of this SINGLE unit, from MeasurePrefix.
      * @throws UnsupportedOperationException if the unit is COMPOUND or MIXED.
-     * @draft ICU 69
+     * @stable ICU 69
      */
     public MeasurePrefix getPrefix() {
         return getSingleUnitImpl().getPrefix();
index e2c3cd5b96212519c1a86aabe351c01165f326dc..7beeb6be916f73dd2bb7aa182aab0903443abacb 100644 (file)
@@ -118,7 +118,7 @@ public class RuleBasedTimeZone extends BasicTimeZone {
 
     /**
      * {@inheritDoc}
-     * @draft ICU 69
+     * @stable ICU 69
      */
     @Override
     public void getOffsetFromLocal(long date,
index 288c5566dc0e2c3da389869792fc88d04168914d..ddb4e1d18cd998c448a24970a855a99a61f0d641 100644 (file)
@@ -790,7 +790,7 @@ public class SimpleTimeZone extends BasicTimeZone {
 
     /**
      * {@inheritDoc}
-     * @draft ICU 69
+     * @stable ICU 69
      */
     @Override
     public void getOffsetFromLocal(long date,
@@ -1449,4 +1449,4 @@ public class SimpleTimeZone extends BasicTimeZone {
         tz.isFrozen = false;
         return tz;
     }
-}
\ No newline at end of file
+}
index 81cd5efe48bc413fcf8f07d09dbecb9df037d20c..6edcc825686b643601746f945ec1253a00b0e099 100644 (file)
@@ -98,7 +98,7 @@ public class VTimeZone extends BasicTimeZone {
 
     /**
      * {@inheritDoc}
-     * @draft ICU 69
+     * @stable ICU 69
      */
     @Override
     public void getOffsetFromLocal(long date,