1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 /*
28  * (C) Copyright Taligent, Inc. 1996, 1997 - All Rights Reserved
29  * (C) Copyright IBM Corp. 1996 - 1998 - All Rights Reserved
30  *
31  * The original version of this source code and documentation
32  * is copyrighted and owned by Taligent, Inc., a wholly-owned
33  * subsidiary of IBM. These materials are provided under terms
34  * of a License Agreement between Taligent and Sun. This technology
35  * is protected by multiple US and International patents.
36  *
37  * This notice and attribution to Taligent may not be removed.
38  * Taligent is a registered trademark of Taligent, Inc.
39  *
40  */
41 
42 
43 package java.util;
44 
45 import java.text.MessageFormat;
46 import java.io.IOException;
47 import java.io.ObjectOutputStream;
48 import java.io.ObjectInputStream;
49 
50 @SuppressWarnings({"unchecked", "deprecation", "all"})
51 public final class Locale implements java.lang.Cloneable, java.io.Serializable {
52 
Locale(java.lang.String language, java.lang.String country, java.lang.String variant)53 public Locale(java.lang.String language, java.lang.String country, java.lang.String variant) { throw new RuntimeException("Stub!"); }
54 
Locale(java.lang.String language, java.lang.String country)55 public Locale(java.lang.String language, java.lang.String country) { throw new RuntimeException("Stub!"); }
56 
Locale(java.lang.String language)57 public Locale(java.lang.String language) { throw new RuntimeException("Stub!"); }
58 
getDefault()59 public static java.util.Locale getDefault() { throw new RuntimeException("Stub!"); }
60 
getDefault(java.util.Locale.Category category)61 public static java.util.Locale getDefault(java.util.Locale.Category category) { throw new RuntimeException("Stub!"); }
62 
initDefault()63 public static java.util.Locale initDefault() { throw new RuntimeException("Stub!"); }
64 
setDefault(java.util.Locale newLocale)65 public static synchronized void setDefault(java.util.Locale newLocale) { throw new RuntimeException("Stub!"); }
66 
setDefault(java.util.Locale.Category category, java.util.Locale newLocale)67 public static synchronized void setDefault(java.util.Locale.Category category, java.util.Locale newLocale) { throw new RuntimeException("Stub!"); }
68 
getAvailableLocales()69 public static java.util.Locale[] getAvailableLocales() { throw new RuntimeException("Stub!"); }
70 
getISOCountries()71 public static java.lang.String[] getISOCountries() { throw new RuntimeException("Stub!"); }
72 
getISOLanguages()73 public static java.lang.String[] getISOLanguages() { throw new RuntimeException("Stub!"); }
74 
getLanguage()75 public java.lang.String getLanguage() { throw new RuntimeException("Stub!"); }
76 
getScript()77 public java.lang.String getScript() { throw new RuntimeException("Stub!"); }
78 
getCountry()79 public java.lang.String getCountry() { throw new RuntimeException("Stub!"); }
80 
getVariant()81 public java.lang.String getVariant() { throw new RuntimeException("Stub!"); }
82 
hasExtensions()83 public boolean hasExtensions() { throw new RuntimeException("Stub!"); }
84 
stripExtensions()85 public java.util.Locale stripExtensions() { throw new RuntimeException("Stub!"); }
86 
getExtension(char key)87 public java.lang.String getExtension(char key) { throw new RuntimeException("Stub!"); }
88 
getExtensionKeys()89 public java.util.Set<java.lang.Character> getExtensionKeys() { throw new RuntimeException("Stub!"); }
90 
getUnicodeLocaleAttributes()91 public java.util.Set<java.lang.String> getUnicodeLocaleAttributes() { throw new RuntimeException("Stub!"); }
92 
getUnicodeLocaleType(java.lang.String key)93 public java.lang.String getUnicodeLocaleType(java.lang.String key) { throw new RuntimeException("Stub!"); }
94 
getUnicodeLocaleKeys()95 public java.util.Set<java.lang.String> getUnicodeLocaleKeys() { throw new RuntimeException("Stub!"); }
96 
toString()97 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
98 
toLanguageTag()99 public java.lang.String toLanguageTag() { throw new RuntimeException("Stub!"); }
100 
forLanguageTag(java.lang.String languageTag)101 public static java.util.Locale forLanguageTag(java.lang.String languageTag) { throw new RuntimeException("Stub!"); }
102 
getISO3Language()103 public java.lang.String getISO3Language() throws java.util.MissingResourceException { throw new RuntimeException("Stub!"); }
104 
getISO3Country()105 public java.lang.String getISO3Country() throws java.util.MissingResourceException { throw new RuntimeException("Stub!"); }
106 
getDisplayLanguage()107 public java.lang.String getDisplayLanguage() { throw new RuntimeException("Stub!"); }
108 
getDisplayLanguage(java.util.Locale locale)109 public java.lang.String getDisplayLanguage(java.util.Locale locale) { throw new RuntimeException("Stub!"); }
110 
getDisplayScript()111 public java.lang.String getDisplayScript() { throw new RuntimeException("Stub!"); }
112 
getDisplayScript(java.util.Locale inLocale)113 public java.lang.String getDisplayScript(java.util.Locale inLocale) { throw new RuntimeException("Stub!"); }
114 
getDisplayCountry()115 public java.lang.String getDisplayCountry() { throw new RuntimeException("Stub!"); }
116 
getDisplayCountry(java.util.Locale locale)117 public java.lang.String getDisplayCountry(java.util.Locale locale) { throw new RuntimeException("Stub!"); }
118 
getDisplayVariant()119 public java.lang.String getDisplayVariant() { throw new RuntimeException("Stub!"); }
120 
getDisplayVariant(java.util.Locale inLocale)121 public java.lang.String getDisplayVariant(java.util.Locale inLocale) { throw new RuntimeException("Stub!"); }
122 
getDisplayName()123 public java.lang.String getDisplayName() { throw new RuntimeException("Stub!"); }
124 
getDisplayName(java.util.Locale locale)125 public java.lang.String getDisplayName(java.util.Locale locale) { throw new RuntimeException("Stub!"); }
126 
clone()127 public java.lang.Object clone() { throw new RuntimeException("Stub!"); }
128 
hashCode()129 public int hashCode() { throw new RuntimeException("Stub!"); }
130 
equals(java.lang.Object obj)131 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
132 
133 @libcore.api.CorePlatformApi
adjustLanguageCode(java.lang.String languageCode)134 public static java.lang.String adjustLanguageCode(java.lang.String languageCode) { throw new RuntimeException("Stub!"); }
135 
filter(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales, java.util.Locale.FilteringMode mode)136 public static java.util.List<java.util.Locale> filter(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales, java.util.Locale.FilteringMode mode) { throw new RuntimeException("Stub!"); }
137 
filter(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales)138 public static java.util.List<java.util.Locale> filter(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales) { throw new RuntimeException("Stub!"); }
139 
filterTags(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.lang.String> tags, java.util.Locale.FilteringMode mode)140 public static java.util.List<java.lang.String> filterTags(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.lang.String> tags, java.util.Locale.FilteringMode mode) { throw new RuntimeException("Stub!"); }
141 
filterTags(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.lang.String> tags)142 public static java.util.List<java.lang.String> filterTags(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.lang.String> tags) { throw new RuntimeException("Stub!"); }
143 
lookup(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales)144 public static java.util.Locale lookup(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.util.Locale> locales) { throw new RuntimeException("Stub!"); }
145 
lookupTag(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.lang.String> tags)146 public static java.lang.String lookupTag(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Collection<java.lang.String> tags) { throw new RuntimeException("Stub!"); }
147 
148 public static final java.util.Locale CANADA;
149 static { CANADA = null; }
150 
151 public static final java.util.Locale CANADA_FRENCH;
152 static { CANADA_FRENCH = null; }
153 
154 public static final java.util.Locale CHINA;
155 static { CHINA = null; }
156 
157 public static final java.util.Locale CHINESE;
158 static { CHINESE = null; }
159 
160 public static final java.util.Locale ENGLISH;
161 static { ENGLISH = null; }
162 
163 public static final java.util.Locale FRANCE;
164 static { FRANCE = null; }
165 
166 public static final java.util.Locale FRENCH;
167 static { FRENCH = null; }
168 
169 public static final java.util.Locale GERMAN;
170 static { GERMAN = null; }
171 
172 public static final java.util.Locale GERMANY;
173 static { GERMANY = null; }
174 
175 public static final java.util.Locale ITALIAN;
176 static { ITALIAN = null; }
177 
178 public static final java.util.Locale ITALY;
179 static { ITALY = null; }
180 
181 public static final java.util.Locale JAPAN;
182 static { JAPAN = null; }
183 
184 public static final java.util.Locale JAPANESE;
185 static { JAPANESE = null; }
186 
187 public static final java.util.Locale KOREA;
188 static { KOREA = null; }
189 
190 public static final java.util.Locale KOREAN;
191 static { KOREAN = null; }
192 
193 public static final java.util.Locale PRC;
194 static { PRC = null; }
195 
196 public static final char PRIVATE_USE_EXTENSION = 120; // 0x0078 'x'
197 
198 public static final java.util.Locale ROOT;
199 static { ROOT = null; }
200 
201 public static final java.util.Locale SIMPLIFIED_CHINESE;
202 static { SIMPLIFIED_CHINESE = null; }
203 
204 public static final java.util.Locale TAIWAN;
205 static { TAIWAN = null; }
206 
207 public static final java.util.Locale TRADITIONAL_CHINESE;
208 static { TRADITIONAL_CHINESE = null; }
209 
210 public static final java.util.Locale UK;
211 static { UK = null; }
212 
213 public static final char UNICODE_LOCALE_EXTENSION = 117; // 0x0075 'u'
214 
215 public static final java.util.Locale US;
216 static { US = null; }
217 @SuppressWarnings({"unchecked", "deprecation", "all"})
218 public static final class Builder {
219 
Builder()220 public Builder() { throw new RuntimeException("Stub!"); }
221 
setLocale(java.util.Locale locale)222 public java.util.Locale.Builder setLocale(java.util.Locale locale) { throw new RuntimeException("Stub!"); }
223 
setLanguageTag(java.lang.String languageTag)224 public java.util.Locale.Builder setLanguageTag(java.lang.String languageTag) { throw new RuntimeException("Stub!"); }
225 
setLanguage(java.lang.String language)226 public java.util.Locale.Builder setLanguage(java.lang.String language) { throw new RuntimeException("Stub!"); }
227 
setScript(java.lang.String script)228 public java.util.Locale.Builder setScript(java.lang.String script) { throw new RuntimeException("Stub!"); }
229 
setRegion(java.lang.String region)230 public java.util.Locale.Builder setRegion(java.lang.String region) { throw new RuntimeException("Stub!"); }
231 
setVariant(java.lang.String variant)232 public java.util.Locale.Builder setVariant(java.lang.String variant) { throw new RuntimeException("Stub!"); }
233 
setExtension(char key, java.lang.String value)234 public java.util.Locale.Builder setExtension(char key, java.lang.String value) { throw new RuntimeException("Stub!"); }
235 
setUnicodeLocaleKeyword(java.lang.String key, java.lang.String type)236 public java.util.Locale.Builder setUnicodeLocaleKeyword(java.lang.String key, java.lang.String type) { throw new RuntimeException("Stub!"); }
237 
addUnicodeLocaleAttribute(java.lang.String attribute)238 public java.util.Locale.Builder addUnicodeLocaleAttribute(java.lang.String attribute) { throw new RuntimeException("Stub!"); }
239 
removeUnicodeLocaleAttribute(java.lang.String attribute)240 public java.util.Locale.Builder removeUnicodeLocaleAttribute(java.lang.String attribute) { throw new RuntimeException("Stub!"); }
241 
clear()242 public java.util.Locale.Builder clear() { throw new RuntimeException("Stub!"); }
243 
clearExtensions()244 public java.util.Locale.Builder clearExtensions() { throw new RuntimeException("Stub!"); }
245 
build()246 public java.util.Locale build() { throw new RuntimeException("Stub!"); }
247 }
248 
249 @SuppressWarnings({"unchecked", "deprecation", "all"})
250 public static enum Category {
251 DISPLAY,
252 FORMAT;
253 }
254 
255 @SuppressWarnings({"unchecked", "deprecation", "all"})
256 public static enum FilteringMode {
257 AUTOSELECT_FILTERING,
258 EXTENDED_FILTERING,
259 IGNORE_EXTENDED_RANGES,
260 MAP_EXTENDED_RANGES,
261 REJECT_EXTENDED_RANGES;
262 }
263 
264 @SuppressWarnings({"unchecked", "deprecation", "all"})
265 public static final class LanguageRange {
266 
LanguageRange(java.lang.String range)267 public LanguageRange(java.lang.String range) { throw new RuntimeException("Stub!"); }
268 
LanguageRange(java.lang.String range, double weight)269 public LanguageRange(java.lang.String range, double weight) { throw new RuntimeException("Stub!"); }
270 
getRange()271 public java.lang.String getRange() { throw new RuntimeException("Stub!"); }
272 
getWeight()273 public double getWeight() { throw new RuntimeException("Stub!"); }
274 
parse(java.lang.String ranges)275 public static java.util.List<java.util.Locale.LanguageRange> parse(java.lang.String ranges) { throw new RuntimeException("Stub!"); }
276 
parse(java.lang.String ranges, java.util.Map<java.lang.String, java.util.List<java.lang.String>> map)277 public static java.util.List<java.util.Locale.LanguageRange> parse(java.lang.String ranges, java.util.Map<java.lang.String, java.util.List<java.lang.String>> map) { throw new RuntimeException("Stub!"); }
278 
mapEquivalents(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Map<java.lang.String, java.util.List<java.lang.String>> map)279 public static java.util.List<java.util.Locale.LanguageRange> mapEquivalents(java.util.List<java.util.Locale.LanguageRange> priorityList, java.util.Map<java.lang.String, java.util.List<java.lang.String>> map) { throw new RuntimeException("Stub!"); }
280 
hashCode()281 public int hashCode() { throw new RuntimeException("Stub!"); }
282 
equals(java.lang.Object obj)283 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
284 
285 public static final double MAX_WEIGHT = 1.0;
286 
287 public static final double MIN_WEIGHT = 0.0;
288 }
289 
290 }
291 
292