8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package sun.util.locale.provider;
27
28 /**
29 * FallbackProviderAdapter implementation.
30 *
31 * @author Naoto Sato
32 */
33 public class FallbackLocaleProviderAdapter extends JRELocaleProviderAdapter {
34
35 /**
36 * Returns the type of this LocaleProviderAdapter
37 */
38 @Override
39 public LocaleProviderAdapter.Type getAdapterType() {
40 return Type.FALLBACK;
41 }
42 }
|
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package sun.util.locale.provider;
27
28 import java.util.HashSet;
29 import java.util.Locale;
30 import java.util.Set;
31
32 /**
33 * FallbackProviderAdapter implementation.
34 *
35 * @author Naoto Sato
36 */
37 public class FallbackLocaleProviderAdapter extends JRELocaleProviderAdapter {
38
39 /**
40 * Returns the type of this LocaleProviderAdapter
41 */
42 @Override
43 public LocaleProviderAdapter.Type getAdapterType() {
44 return Type.FALLBACK;
45 }
46
47 @Override
48 public Locale[] getAvailableLocales() {
49 Locale[] ret = {Locale.ROOT};
50 return ret;
51 }
52
53 @Override
54 public Set<String> getLanguageTagSet(String category) {
55 return new HashSet<String>();
56 }
57 }
|