ICU-8474 cleanup, moving some test code to CLDR.
X-SVN-Rev: 33882
This commit is contained in:
parent
a58211dad1
commit
b62f044d82
@ -245,4 +245,12 @@ public class PluralRulesLoader extends PluralRules.Factory {
|
||||
* The only instance of the loader.
|
||||
*/
|
||||
public static final PluralRulesLoader loader = new PluralRulesLoader();
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see com.ibm.icu.text.PluralRules.Factory#hasOverride(com.ibm.icu.util.ULocale)
|
||||
*/
|
||||
@Override
|
||||
public boolean hasOverride(ULocale locale) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -265,6 +265,13 @@ public class PluralRules implements Serializable {
|
||||
public static PluralRulesLoader getDefaultFactory() {
|
||||
return PluralRulesLoader.loader;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether or not there are overrides.
|
||||
* @deprecated This API is ICU internal only.
|
||||
* @internal
|
||||
*/
|
||||
public abstract boolean hasOverride(ULocale locale);
|
||||
}
|
||||
// Standard keywords.
|
||||
|
||||
|
@ -16,21 +16,13 @@ import com.ibm.icu.util.ULocale;
|
||||
*/
|
||||
public abstract class PluralRulesFactory extends PluralRules.Factory {
|
||||
|
||||
abstract boolean hasOverride(ULocale locale);
|
||||
|
||||
public abstract PluralRules forLocale(ULocale locale, PluralType ordinal);
|
||||
|
||||
public abstract ULocale[] getAvailableULocales();
|
||||
|
||||
public abstract ULocale getFunctionalEquivalent(ULocale locale, boolean[] isAvailable);
|
||||
|
||||
static final PluralRulesFactory NORMAL = new PluralRulesFactoryVanilla();
|
||||
|
||||
private PluralRulesFactory() {}
|
||||
|
||||
static class PluralRulesFactoryVanilla extends PluralRulesFactory {
|
||||
@Override
|
||||
boolean hasOverride(ULocale locale) {
|
||||
public boolean hasOverride(ULocale locale) {
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user