public class CurrencyPluralInfo extends Object implements Cloneable, Serializable
Constructor and Description |
---|
CurrencyPluralInfo()
Create a CurrencyPluralInfo object for the default
FORMAT locale. |
CurrencyPluralInfo(Locale locale)
Create a CurrencyPluralInfo object for the given locale.
|
CurrencyPluralInfo(ULocale locale)
Create a CurrencyPluralInfo object for the given locale.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Standard override
|
boolean |
equals(Object a)
Override equals
|
String |
getCurrencyPluralPattern(String pluralCount)
Given a plural count, gets currency plural pattern of this locale,
used for currency plural format
|
static CurrencyPluralInfo |
getInstance()
Gets a CurrencyPluralInfo instance for the default locale.
|
static CurrencyPluralInfo |
getInstance(Locale locale)
Gets a CurrencyPluralInfo instance for the given locale.
|
static CurrencyPluralInfo |
getInstance(ULocale locale)
Gets a CurrencyPluralInfo instance for the given locale.
|
ULocale |
getLocale()
Get locale
|
PluralRules |
getPluralRules()
Gets plural rules of this locale, used for currency plural format
|
int |
hashCode()
Override hashCode
|
Iterator<String> |
pluralPatternIterator()
Deprecated.
This API is ICU internal only.
|
String |
select(PluralRules.FixedDecimal numberInfo)
Deprecated.
This API is ICU internal only.
|
void |
setCurrencyPluralPattern(String pluralCount,
String pattern)
Set currency plural patterns.
|
void |
setLocale(ULocale loc)
Set locale.
|
void |
setPluralRules(String ruleDescription)
Set plural rules.
|
public CurrencyPluralInfo()
FORMAT
locale.ULocale.Category.FORMAT
public CurrencyPluralInfo(Locale locale)
locale
- the localepublic CurrencyPluralInfo(ULocale locale)
locale
- the localepublic static CurrencyPluralInfo getInstance()
public static CurrencyPluralInfo getInstance(Locale locale)
locale
- the locale.public static CurrencyPluralInfo getInstance(ULocale locale)
locale
- the locale.public PluralRules getPluralRules()
public String getCurrencyPluralPattern(String pluralCount)
pluralCount
- currency plural countpublic ULocale getLocale()
public void setPluralRules(String ruleDescription)
ruleDescription
- new plural rule descriptionpublic void setCurrencyPluralPattern(String pluralCount, String pattern)
pluralCount
- the plural count for which the currency pattern will
be overridden.pattern
- the new currency plural patternpublic void setLocale(ULocale loc)
loc
- the new locale to setpublic Object clone()
public boolean equals(Object a)
public int hashCode()
@Deprecated public String select(PluralRules.FixedDecimal numberInfo)
@Deprecated public Iterator<String> pluralPatternIterator()
Copyright © 2016 Unicode, Inc. and others.