From 7f044eeb7a7553e956d6aedfbd2dec57b34deeb0 Mon Sep 17 00:00:00 2001 From: Craig Cornelius Date: Wed, 23 Feb 2022 09:15:45 -0800 Subject: [PATCH] ICU-21900 ICU4J: Promote all '@draft ICU 69' to '@stable' --- .../com/ibm/icu/number/FractionPrecision.java | 2 +- .../com/ibm/icu/number/NumberFormatter.java | 16 ++--- .../ibm/icu/number/NumberRangeFormatter.java | 4 +- .../src/com/ibm/icu/number/Precision.java | 2 +- .../src/com/ibm/icu/util/BasicTimeZone.java | 16 ++--- .../src/com/ibm/icu/util/MeasureUnit.java | 68 +++++++++---------- .../com/ibm/icu/util/RuleBasedTimeZone.java | 2 +- .../src/com/ibm/icu/util/SimpleTimeZone.java | 4 +- .../core/src/com/ibm/icu/util/VTimeZone.java | 2 +- 9 files changed, 58 insertions(+), 58 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/FractionPrecision.java b/icu4j/main/classes/core/src/com/ibm/icu/number/FractionPrecision.java index 6a10bdaa774..a4c22a05e7d 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/FractionPrecision.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/FractionPrecision.java @@ -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, diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java index 715c0f28ef6..3cc536a423f 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberFormatter.java @@ -110,20 +110,20 @@ public final class NumberFormatter { *

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 { *

  • HIDE_IF_WHOLE: 0.90, 1, 1.10 * * - * @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, } diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberRangeFormatter.java b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberRangeFormatter.java index 5c022e6c8c3..e36e82ebeb1 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/NumberRangeFormatter.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/NumberRangeFormatter.java @@ -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"); diff --git a/icu4j/main/classes/core/src/com/ibm/icu/number/Precision.java b/icu4j/main/classes/core/src/com/ibm/icu/number/Precision.java index f98594546d2..6369c48e241 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/number/Precision.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/number/Precision.java @@ -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(); diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/BasicTimeZone.java b/icu4j/main/classes/core/src/com/ibm/icu/util/BasicTimeZone.java index 7e347d74b46..cb78582a8b0 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/BasicTimeZone.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/BasicTimeZone.java @@ -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) { diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/MeasureUnit.java b/icu4j/main/classes/core/src/com/ibm/icu/util/MeasureUnit.java index 85f15c437ec..86181cbe1f3 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/MeasureUnit.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/MeasureUnit.java @@ -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(); diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/RuleBasedTimeZone.java b/icu4j/main/classes/core/src/com/ibm/icu/util/RuleBasedTimeZone.java index e2c3cd5b962..7beeb6be916 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/RuleBasedTimeZone.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/RuleBasedTimeZone.java @@ -118,7 +118,7 @@ public class RuleBasedTimeZone extends BasicTimeZone { /** * {@inheritDoc} - * @draft ICU 69 + * @stable ICU 69 */ @Override public void getOffsetFromLocal(long date, diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/SimpleTimeZone.java b/icu4j/main/classes/core/src/com/ibm/icu/util/SimpleTimeZone.java index 288c5566dc0..ddb4e1d18cd 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/SimpleTimeZone.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/SimpleTimeZone.java @@ -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 +} diff --git a/icu4j/main/classes/core/src/com/ibm/icu/util/VTimeZone.java b/icu4j/main/classes/core/src/com/ibm/icu/util/VTimeZone.java index 81cd5efe48b..6edcc825686 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/util/VTimeZone.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/util/VTimeZone.java @@ -98,7 +98,7 @@ public class VTimeZone extends BasicTimeZone { /** * {@inheritDoc} - * @draft ICU 69 + * @stable ICU 69 */ @Override public void getOffsetFromLocal(long date, -- 2.50.1