ICU-8474 cleanup, moving some test code to CLDR.

X-SVN-Rev: 33882
This commit is contained in:
Mark Davis 2013-07-03 08:58:32 +00:00
parent a58211dad1
commit b62f044d82
3 changed files with 16 additions and 9 deletions

View File

@ -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;
}
}

View File

@ -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.

View File

@ -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