ICU-21480 BRS#18 ICU4J promotions to stable

This commit is contained in:
Craig Cornelius 2021-03-09 08:35:20 -08:00
parent 74eb9e621b
commit 2f89152830
8 changed files with 42 additions and 42 deletions

View 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,

View 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);

View 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;
};

View 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()) {

View 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();

View 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;

View 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 BretonFrench. (default)
*
* @draft ICU 67
* @stable ICU 67
*/
WITH_ONE_WAY,
/**
* Locale matching limited to two-way matches including e.g. DanishNorwegian
* 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;

View 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());