Package com.ibm.icu.impl.number
Class PropertiesAffixPatternProvider
- java.lang.Object
-
- com.ibm.icu.impl.number.PropertiesAffixPatternProvider
-
- All Implemented Interfaces:
AffixPatternProvider
public class PropertiesAffixPatternProvider 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 boolean
currencyAsDecimal
private boolean
isCurrencyPattern
private java.lang.String
negPrefix
private java.lang.String
negSuffix
private java.lang.String
posPrefix
private java.lang.String
posSuffix
-
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 PropertiesAffixPatternProvider(DecimalFormatProperties properties)
-
Method Summary
All Methods Static 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.static AffixPatternProvider
forProperties(DecimalFormatProperties properties)
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()
java.lang.String
toString()
-
-
-
Field Detail
-
posPrefix
private final java.lang.String posPrefix
-
posSuffix
private final java.lang.String posSuffix
-
negPrefix
private final java.lang.String negPrefix
-
negSuffix
private final java.lang.String negSuffix
-
isCurrencyPattern
private final boolean isCurrencyPattern
-
currencyAsDecimal
private final boolean currencyAsDecimal
-
-
Constructor Detail
-
PropertiesAffixPatternProvider
PropertiesAffixPatternProvider(DecimalFormatProperties properties)
-
-
Method Detail
-
forProperties
public static AffixPatternProvider forProperties(DecimalFormatProperties properties)
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-