ConstantMultiFieldModifier, but supports currency spacing.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final UnicodeSet | |
| private final String | |
| private final UnicodeSet | |
| pack-priv static final short | |
| pack-priv static final short | |
| pack-priv static final byte | |
| pack-priv static final byte | |
| private static final UnicodeSet | |
| private static final UnicodeSet |
| Access | Constructor and Description |
|---|---|
| public | CurrencySpacingEnabledModifier(FormattedStringBuilder prefix, FormattedStringBuilder suffix, boolean overwrite, boolean strong, DecimalFormatSymbols symbols)
Safe code path |
| Modifier and Type | Method and Description |
|---|---|
| public int | apply(FormattedStringBuilder
The string builder to which to apply this modifier. output, int The left index of the string within the builder. Equal to 0 when only one number is
being formatted. leftIndex, int The right index of the string within the string builder. Equal to length when only one
number is being formatted. rightIndex)Overrides com. Implements com. |
| public static int | applyCurrencySpacing(FormattedStringBuilder output, int prefixStart, int prefixLen, int suffixStart, int suffixLen, DecimalFormatSymbols symbols)
Unsafe code path |
| private static int | applyCurrencySpacingAffix(FormattedStringBuilder output, int index, byte affix, DecimalFormatSymbols symbols)
Unsafe code path |
| private static String | |
| private static UnicodeSet |
| afterPrefixInsert | back to summary |
|---|---|
| private final String afterPrefixInsert | |
| afterPrefixUnicodeSet | back to summary |
|---|---|
| private final UnicodeSet afterPrefixUnicodeSet | |
| beforeSuffixInsert | back to summary |
|---|---|
| private final String beforeSuffixInsert | |
| beforeSuffixUnicodeSet | back to summary |
|---|---|
| private final UnicodeSet beforeSuffixUnicodeSet | |
| IN_CURRENCY | back to summary |
|---|---|
| pack-priv static final short IN_CURRENCY | |
| IN_NUMBER | back to summary |
|---|---|
| pack-priv static final short IN_NUMBER | |
| PREFIX | back to summary |
|---|---|
| pack-priv static final byte PREFIX | |
| SUFFIX | back to summary |
|---|---|
| pack-priv static final byte SUFFIX | |
| UNISET_DIGIT | back to summary |
|---|---|
| private static final UnicodeSet UNISET_DIGIT | |
| UNISET_NOTSZ | back to summary |
|---|---|
| private static final UnicodeSet UNISET_NOTSZ | |
| CurrencySpacingEnabledModifier | back to summary |
|---|---|
| public CurrencySpacingEnabledModifier(FormattedStringBuilder prefix, FormattedStringBuilder suffix, boolean overwrite, boolean strong, DecimalFormatSymbols symbols) Safe code path | |
| apply | back to summary |
|---|---|
| public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) Overrides com. Implements com. Safe code path
| |
| applyCurrencySpacing | back to summary |
|---|---|
| public static int applyCurrencySpacing(FormattedStringBuilder output, int prefixStart, int prefixLen, int suffixStart, int suffixLen, DecimalFormatSymbols symbols) Unsafe code path | |
| applyCurrencySpacingAffix | back to summary |
|---|---|
| private static int applyCurrencySpacingAffix(FormattedStringBuilder output, int index, byte affix, DecimalFormatSymbols symbols) Unsafe code path | |
| getInsertString | back to summary |
|---|---|
| private static String getInsertString(DecimalFormatSymbols symbols, byte affix) | |
| getUnicodeSet | back to summary |
|---|---|
| private static UnicodeSet getUnicodeSet(DecimalFormatSymbols symbols, short position, byte affix) | |