Skip to content

Commit

Permalink
ICU-21480 BRS#18 ICU4J promotions to stable
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-oly committed Mar 9, 2021
1 parent 74eb9e6 commit 2f89152
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static enum UnitWidth {
* <p>
* Behavior of this option with non-currency units is not defined at this time.
*
* @draft ICU 67
* @stable ICU 67
* @see NumberFormatter
*/
FORMAL,
Expand All @@ -224,7 +224,7 @@ public static enum UnitWidth {
* <p>
* Behavior of this option with non-currency units is not defined at this time.
*
* @draft ICU 67
* @stable ICU 67
* @see NumberFormatter
*/
VARIANT,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static boolean hasData() {
*
* @param isoCode the three-letter ISO code.
* @return the formal symbol.
* @draft ICU 67
* @stable ICU 67
*/
public abstract String getFormalSymbol(String isoCode);

Expand All @@ -164,7 +164,7 @@ public static boolean hasData() {
*
* @param isoCode the three-letter ISO code.
* @return the variant symbol.
* @draft ICU 67
* @stable ICU 67
*/
public abstract String getVariantSymbol(String isoCode);

Expand Down
10 changes: 5 additions & 5 deletions icu4j/main/classes/core/src/com/ibm/icu/text/DateFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -537,30 +537,30 @@ public enum BooleanAttribute {

/**
* 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;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1357,7 +1357,7 @@ public String getAppendItemName(int field) {

/**
* Return the default hour cycle.
* @draft ICU 67
* @stable ICU 67
*/
public DateFormat.HourCycle getDefaultHourCycle() {
switch(getDefaultHourFormatChar()) {
Expand Down
50 changes: 25 additions & 25 deletions icu4j/main/classes/core/src/com/ibm/icu/text/ListFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,64 +53,64 @@ private interface PatternHandler {
/**
* 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,

/**
* 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
};

/**
* 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,
};

/**
* 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;
Expand All @@ -121,7 +121,7 @@ public static final class SpanField extends UFormat.SpanField {
* 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");

Expand All @@ -147,20 +147,20 @@ protected Object readResolve() throws InvalidObjectException {

/**
* 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");

Expand Down Expand Up @@ -191,7 +191,7 @@ protected Object readResolve() throws InvalidObjectException {
*
* Not intended for public subclassing.
*
* @draft ICU 67
* @stable ICU 67
*/
public static final class FormattedList implements FormattedValue {
private final FormattedStringBuilder string;
Expand All @@ -202,7 +202,7 @@ public static final class FormattedList implements FormattedValue {

/**
* {@inheritDoc}
* @draft ICU 67
* @stable ICU 67
*/
@Override
public String toString() {
Expand All @@ -211,7 +211,7 @@ public String toString() {

/**
* {@inheritDoc}
* @draft ICU 67
* @stable ICU 67
*/
@Override
public int length() {
Expand All @@ -220,7 +220,7 @@ public int length() {

/**
* {@inheritDoc}
* @draft ICU 67
* @stable ICU 67
*/
@Override
public char charAt(int index) {
Expand All @@ -229,7 +229,7 @@ public char charAt(int index) {

/**
* {@inheritDoc}
* @draft ICU 67
* @stable ICU 67
*/
@Override
public CharSequence subSequence(int start, int end) {
Expand All @@ -238,7 +238,7 @@ public CharSequence subSequence(int start, int end) {

/**
* {@inheritDoc}
* @draft ICU 67
* @stable ICU 67
*/
@Override
public <A extends Appendable> A appendTo(A appendable) {
Expand All @@ -247,7 +247,7 @@ public <A extends Appendable> A appendTo(A appendable) {

/**
* {@inheritDoc}
* @draft ICU 67
* @stable ICU 67
*/
@Override
public boolean nextPosition(ConstrainedFieldPosition cfpos) {
Expand All @@ -256,7 +256,7 @@ public boolean nextPosition(ConstrainedFieldPosition cfpos) {

/**
* {@inheritDoc}
* @draft ICU 67
* @stable ICU 67
*/
@Override
public AttributedCharacterIterator toCharacterIterator() {
Expand Down Expand Up @@ -310,7 +310,7 @@ private static String compilePattern(String pattern, StringBuilder sb) {
* @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);
Expand All @@ -326,7 +326,7 @@ public static ListFormatter getInstance(ULocale locale, Type type, Width width)
* @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);
Expand Down Expand Up @@ -397,7 +397,7 @@ public String format(Collection<?> items) {
* @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));
Expand All @@ -411,7 +411,7 @@ public FormattedList formatToValue(Object... items) {
* @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();
Expand Down
4 changes: 2 additions & 2 deletions icu4j/main/classes/core/src/com/ibm/icu/util/Currency.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,20 +164,20 @@ public enum Demotion {
* 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
}
Expand Down Expand Up @@ -522,7 +522,7 @@ public Builder setDemotionPerDesiredLocale(Demotion demotion) {
*
* @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;
Expand Down
2 changes: 1 addition & 1 deletion icu4j/main/classes/core/src/com/ibm/icu/util/ULocale.java
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ public static ULocale createCanonical(String nonCanonicalID) {
* 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());
Expand Down

0 comments on commit 2f89152

Please sign in to comment.