Index: main/classes/core/src/com/ibm/icu/impl/number/Modifier.java =================================================================== --- main/classes/core/src/com/ibm/icu/impl/number/Modifier.java (revision 40289) +++ main/classes/core/src/com/ibm/icu/impl/number/Modifier.java (working copy) @@ -34,13 +34,6 @@ public int apply(NumberStringBuilder output, int leftIndex, int rightIndex); /** - * The number of characters that {@link #apply} would add to the string builder. - * - * @return The number of characters (UTF-16 code units) that would be added to a string builder. - */ - public int length(); - - /** * Whether this modifier is strong. If a modifier is strong, it should always be applied * immediately and not allowed to bubble up. With regard to padding, strong modifiers are * considered to be on the inside of the prefix and suffix. @@ -53,6 +46,9 @@ * Gets the prefix string associated with this modifier, defined as the string that will be * inserted at leftIndex when {@link #apply} is called. * + *
TODO: Change this to appendPrefixTo(), or remove it entirely and do something different at + * the call sites. + * * @return The prefix string. Will not be null. */ public String getPrefix(); @@ -61,6 +57,9 @@ * Gets the prefix string associated with this modifier, defined as the string that will be * inserted at rightIndex when {@link #apply} is called. * + *
TODO: Change this to appendPrefixTo(), or remove it entirely and do something different at + * the call sites. + * * @return The suffix string. Will not be null. */ public String getSuffix(); @@ -109,8 +108,8 @@ /** * A starter implementation with defaults for some of the basic methods. * - *
Implements {@link PositiveNegativeModifier} only so that instances of this class can be used when - * a {@link PositiveNegativeModifier} is required. + *
Implements {@link PositiveNegativeModifier} only so that instances of this class can be used + * when a {@link PositiveNegativeModifier} is required. */ public abstract static class BaseModifier extends Format.BeforeFormat implements Modifier, PositiveNegativeModifier {