public class CurrencySpacingEnabledModifier extends ConstantMultiFieldModifier
ConstantMultiFieldModifier, but supports currency spacing.Modifier.Parameters, Modifier.SignumprefixChars, prefixFields, suffixChars, suffixFields| Constructor and Description |
|---|
CurrencySpacingEnabledModifier(FormattedStringBuilder prefix,
FormattedStringBuilder suffix,
boolean overwrite,
boolean strong,
DecimalFormatSymbols symbols)
Safe code path
|
| Modifier and Type | Method and Description |
|---|---|
int |
apply(FormattedStringBuilder output,
int leftIndex,
int rightIndex)
Safe code path
|
static int |
applyCurrencySpacing(FormattedStringBuilder output,
int prefixStart,
int prefixLen,
int suffixStart,
int suffixLen,
DecimalFormatSymbols symbols)
Unsafe code path
|
containsField, getCodePointCount, getParameters, getPrefixLength, isStrong, semanticallyEquivalent, toStringpublic CurrencySpacingEnabledModifier(FormattedStringBuilder prefix, FormattedStringBuilder suffix, boolean overwrite, boolean strong, DecimalFormatSymbols symbols)
public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex)
apply in interface Modifierapply in class ConstantMultiFieldModifieroutput - The string builder to which to apply this modifier.leftIndex - The left index of the string within the builder. Equal to 0 when only one number is
being formatted.rightIndex - The right index of the string within the string builder. Equal to length when only one
number is being formatted.public static int applyCurrencySpacing(FormattedStringBuilder output, int prefixStart, int prefixLen, int suffixStart, int suffixLen, DecimalFormatSymbols symbols)