public String getCurrencyPluralPattern ( String pluralCount ) { String currencyPluralPattern = pluralCountToCurrencyUnitPattern . get ( pluralCount ) ; if ( currencyPluralPattern == null ) { // fall back to "other" if ( ! pluralCount . equals ( "other" ) ) { currencyPluralPattern = pluralCountToCurrencyUnitPattern . get ( "other" ) ; } if ( currencyPluralPattern == null ) { // no currencyUnitPatterns defined, // fallback to predefined default. // This should never happen when ICU resource files are // available, since currencyUnitPattern of "other" is always // defined in root. currencyPluralPattern = defaultCurrencyPluralPattern ; } } return currencyPluralPattern ; }
Given a plural count gets currency plural pattern of this locale used for currency plural format