Package com.ibm.icu.impl.number
Class CurrencyPluralInfoAffixProvider
- java.lang.Object
-
- com.ibm.icu.impl.number.CurrencyPluralInfoAffixProvider
-
- All Implemented Interfaces:
AffixPatternProvider
public class CurrencyPluralInfoAffixProvider extends java.lang.Object implements AffixPatternProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.icu.impl.number.AffixPatternProvider
AffixPatternProvider.Flags
-
-
Field Summary
Fields Modifier and Type Field Description private PropertiesAffixPatternProvider[]
affixesByPlural
-
Fields inherited from interface com.ibm.icu.impl.number.AffixPatternProvider
FLAG_NEG_PREFIX, FLAG_NEG_SUFFIX, FLAG_POS_PREFIX, FLAG_POS_SUFFIX
-
-
Constructor Summary
Constructors Constructor Description CurrencyPluralInfoAffixProvider(CurrencyPluralInfo cpi, DecimalFormatProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int flags, int i)
boolean
containsSymbolType(int type)
boolean
currencyAsDecimal()
True if the currency symbol should replace the decimal separator.java.lang.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()
-
-
-
Field Detail
-
affixesByPlural
private final PropertiesAffixPatternProvider[] affixesByPlural
-
-
Constructor Detail
-
CurrencyPluralInfoAffixProvider
public CurrencyPluralInfoAffixProvider(CurrencyPluralInfo cpi, DecimalFormatProperties properties)
-
-
Method Detail
-
charAt
public char charAt(int flags, int i)
- Specified by:
charAt
in interfaceAffixPatternProvider
-
length
public int length(int flags)
- Specified by:
length
in interfaceAffixPatternProvider
-
getString
public java.lang.String getString(int flags)
- Specified by:
getString
in interfaceAffixPatternProvider
-
positiveHasPlusSign
public boolean positiveHasPlusSign()
- Specified by:
positiveHasPlusSign
in interfaceAffixPatternProvider
-
hasNegativeSubpattern
public boolean hasNegativeSubpattern()
- Specified by:
hasNegativeSubpattern
in interfaceAffixPatternProvider
-
negativeHasMinusSign
public boolean negativeHasMinusSign()
- Specified by:
negativeHasMinusSign
in interfaceAffixPatternProvider
-
hasCurrencySign
public boolean hasCurrencySign()
- Specified by:
hasCurrencySign
in interfaceAffixPatternProvider
-
containsSymbolType
public boolean containsSymbolType(int type)
- Specified by:
containsSymbolType
in interfaceAffixPatternProvider
-
hasBody
public boolean hasBody()
Description copied from interface:AffixPatternProvider
True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not have one. This is used in cases like compact notation, where the pattern replaces the entire number instead of rendering the number.- Specified by:
hasBody
in interfaceAffixPatternProvider
-
currencyAsDecimal
public boolean currencyAsDecimal()
Description copied from interface:AffixPatternProvider
True if the currency symbol should replace the decimal separator.- Specified by:
currencyAsDecimal
in interfaceAffixPatternProvider
-
-