mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-14 17:24:01 +00:00
ICU-21900 ICU4J: Promote all '@draft ICU 69' to '@stable'
This commit is contained in:
parent
0ce0d1aa5d
commit
7f044eeb7a
9 changed files with 58 additions and 58 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -118,7 +118,7 @@ public class RuleBasedTimeZone extends BasicTimeZone {
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @draft ICU 69
|
||||
* @stable ICU 69
|
||||
*/
|
||||
@Override
|
||||
public void getOffsetFromLocal(long date,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -98,7 +98,7 @@ public class VTimeZone extends BasicTimeZone {
|
|||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @draft ICU 69
|
||||
* @stable ICU 69
|
||||
*/
|
||||
@Override
|
||||
public void getOffsetFromLocal(long date,
|
||||
|
|
Loading…
Add table
Reference in a new issue