com.ibm.icu.text.SimpleFormatter pattern.
A Modifier is usually immutable, except in cases such as MutablePatternModifier, which are
mutable for performance reasons.
| Modifier and Type | Class and Description |
|---|---|
| public static class | Modifier.Parameters
A fill-in for getParameters(). |
| public static enum |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: The number of characters (UTF-16 code units) that were added to the string builder.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)Apply this Modifier to the string builder. |
| public boolean | containsField(Format.
Whether the modifier contains at least one occurrence of the given field. |
| public int | |
| public Modifier. | |
| public int | Returns: The number of characters (UTF-16 code units) in the prefix.Gets the length of the prefix. |
| public boolean | |
| public boolean | semanticallyEquivalent(Modifier other)
Returns whether this Modifier is *semantically equivalent* to the other Modifier; in many cases, this is the same as equal, but parameters should be ignored. |
| apply | back to summary |
|---|---|
| public int apply(FormattedStringBuilder output, int leftIndex, int rightIndex) Apply this Modifier to the string builder.
| |
| containsField | back to summary |
|---|---|
| public boolean containsField(Format. Whether the modifier contains at least one occurrence of the given field. | |
| getCodePointCount | back to summary |
|---|---|
| public int getCodePointCount() Returns the number of code points in the modifier, prefix plus suffix. | |
| getParameters | back to summary |
|---|---|
| public Modifier. Gets a set of "parameters" for this Modifier. | |
| getPrefixLength | back to summary |
|---|---|
| public int getPrefixLength() Gets the length of the prefix. This information can be used in combination with
| |
| isStrong | back to summary |
|---|---|
| public boolean isStrong() 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.
| |
| semanticallyEquivalent | back to summary |
|---|---|
| public boolean semanticallyEquivalent(Modifier other) Returns whether this Modifier is *semantically equivalent* to the other Modifier; in many cases, this is the same as equal, but parameters should be ignored. | |
| Modifier and Type | Field and Description |
|---|---|
| public ModifierStore | |
| public StandardPlural | |
| public Modifier. |
| Access | Constructor and Description |
|---|---|
| public |
| obj | back to summary |
|---|---|
| public ModifierStore obj | |
| plural | back to summary |
|---|---|
| public StandardPlural plural | |
| signum | back to summary |
|---|---|
| public Modifier. | |
| Parameters | back to summary |
|---|---|
| public Parameters() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| public static final Modifier. | |
| public static final Modifier. | |
| public static final Modifier. | |
| public static final Modifier. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Modifier. | |
| public static Modifier. |
| COUNT | back to summary |
|---|---|
| pack-priv static final int COUNT | |
| NEG | back to summary |
|---|---|
| public static final Modifier. | |
| NEG_ZERO | back to summary |
|---|---|
| public static final Modifier. | |
| POS | back to summary |
|---|---|
| public static final Modifier. | |
| POS_ZERO | back to summary |
|---|---|
| public static final Modifier. | |
| Signum | back to summary |
|---|---|
| private Signum() | |
| valueOf | back to summary |
|---|---|
| public static Modifier. | |
| values | back to summary |
|---|---|
| public static Modifier. | |