src/java.base/share/classes/sun/util/locale/provider/ResourceBundleBasedAdapter.java
author naoto
Tue, 21 May 2019 13:40:56 -0700
changeset 54968 c13b1382aa30
parent 47216 71c04702a3d5
permissions -rw-r--r--
8224105: Cannot parse JapaneseDate string on some specified locales Reviewed-by: bchristi
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15260
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     1
/*
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 15260
diff changeset
     2
 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
15260
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     4
 *
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    10
 *
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    15
 * accompanied this code).
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    16
 *
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    20
 *
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    23
 * questions.
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    24
 */
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    25
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    26
package sun.util.locale.provider;
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    27
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 25859
diff changeset
    28
import java.util.List;
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 25859
diff changeset
    29
import java.util.Locale;
15260
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    30
import sun.util.resources.LocaleData;
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    31
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    32
/**
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    33
 * Accessor for LocaleData
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    34
 *
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    35
 * @author Naoto Sato
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    36
 */
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    37
public interface ResourceBundleBasedAdapter {
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    38
    public LocaleData getLocaleData();
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 25859
diff changeset
    39
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 25859
diff changeset
    40
    /**
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 25859
diff changeset
    41
     * candidate locales customization
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 25859
diff changeset
    42
     */
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 25859
diff changeset
    43
    public List<Locale> getCandidateLocales(String baseName, Locale locale);
15260
7af2d7a87806 7162007: Clean up i18n related caches
naoto
parents:
diff changeset
    44
}