org.gwtproject.i18n.client.impl.cldr.LocalizedNamesImplBase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-cldr Show documentation
Show all versions of gwt-cldr Show documentation
Fork of the Github project vegegoku/gwt-i18n-cldr: GWT cldr classes generated from gwt-cldr-importer.
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package org.gwtproject.i18n.client.impl.cldr;
import org.gwtproject.i18n.client.DefaultLocalizedNames;
import org.gwtproject.i18n.shared.Localizable;
import java.util.HashMap;
/**
* A base class for client-side implementations of the {@link
* org.gwtproject.i18n.client.LocalizedNames} interface.
*/
public abstract class LocalizedNamesImplBase extends DefaultLocalizedNames
implements Localizable {
/**
* Add all entries in {@code override} to the original map, replacing
* any existing entries. This is used by subclasses that need to slightly
* alter the data used by the parent locale.
*/
protected static final HashMap overrideMap(
HashMap original, HashMap override) {
original.putAll(override);
return original;
};
private HashMap jsoNameMap = null;
@Override
protected String[] loadLikelyRegionCodes() {
// If this override isn't here, LocalizableGenerator-produced overrides
// fail with a visibility error in both javac and eclipse.
return super.loadLikelyRegionCodes();
}
}