public class PropertiesAffixPatternProvider extends Object implements AffixPatternProvider
AffixPatternProvider.FlagsFLAG_NEG_PREFIX, FLAG_NEG_SUFFIX, FLAG_POS_PREFIX, FLAG_POS_SUFFIX| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int flags,
int i) |
boolean |
containsSymbolType(int type) |
boolean |
currencyAsDecimal()
True if the currency symbol should replace the decimal separator.
|
static AffixPatternProvider |
forProperties(DecimalFormatProperties properties) |
String |
getString(int flags) |
boolean |
hasBody()
True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not
have one.
|
boolean |
hasCurrencySign() |
boolean |
hasNegativeSubpattern() |
int |
length(int flags) |
boolean |
negativeHasMinusSign() |
boolean |
positiveHasPlusSign() |
String |
toString() |
public static AffixPatternProvider forProperties(DecimalFormatProperties properties)
public char charAt(int flags,
int i)
charAt in interface AffixPatternProviderpublic int length(int flags)
length in interface AffixPatternProviderpublic String getString(int flags)
getString in interface AffixPatternProviderpublic boolean positiveHasPlusSign()
positiveHasPlusSign in interface AffixPatternProviderpublic boolean hasNegativeSubpattern()
hasNegativeSubpattern in interface AffixPatternProviderpublic boolean negativeHasMinusSign()
negativeHasMinusSign in interface AffixPatternProviderpublic boolean hasCurrencySign()
hasCurrencySign in interface AffixPatternProviderpublic boolean containsSymbolType(int type)
containsSymbolType in interface AffixPatternProviderpublic boolean hasBody()
AffixPatternProviderhasBody in interface AffixPatternProviderpublic boolean currencyAsDecimal()
AffixPatternProvidercurrencyAsDecimal in interface AffixPatternProvider