• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 1996, 2013, 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 is copyrighted
32  * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These
33  * materials are provided under terms of a License Agreement between Taligent
34  * and Sun. This technology is protected by multiple US and International
35  * patents. This notice and attribution to Taligent may not be removed.
36  *   Taligent is a registered trademark of Taligent, Inc.
37  *
38  */
39 
40 package java.text;
41 
42 import android.compat.annotation.UnsupportedAppUsage;
43 
44 @SuppressWarnings({"unchecked", "deprecation", "all"})
45 public abstract class NumberFormat extends java.text.Format {
46 
NumberFormat()47     protected NumberFormat() {
48         throw new RuntimeException("Stub!");
49     }
50 
format( java.lang.Object number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)51     public java.lang.StringBuffer format(
52             java.lang.Object number,
53             java.lang.StringBuffer toAppendTo,
54             java.text.FieldPosition pos) {
55         throw new RuntimeException("Stub!");
56     }
57 
parseObject( java.lang.String source, java.text.ParsePosition pos)58     public final java.lang.Object parseObject(
59             java.lang.String source, java.text.ParsePosition pos) {
60         throw new RuntimeException("Stub!");
61     }
62 
format(double number)63     public final java.lang.String format(double number) {
64         throw new RuntimeException("Stub!");
65     }
66 
format(long number)67     public final java.lang.String format(long number) {
68         throw new RuntimeException("Stub!");
69     }
70 
format( double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)71     public abstract java.lang.StringBuffer format(
72             double number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos);
73 
format( long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)74     public abstract java.lang.StringBuffer format(
75             long number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos);
76 
parse( java.lang.String source, java.text.ParsePosition parsePosition)77     public abstract java.lang.Number parse(
78             java.lang.String source, java.text.ParsePosition parsePosition);
79 
parse(java.lang.String source)80     public java.lang.Number parse(java.lang.String source) throws java.text.ParseException {
81         throw new RuntimeException("Stub!");
82     }
83 
isParseIntegerOnly()84     public boolean isParseIntegerOnly() {
85         throw new RuntimeException("Stub!");
86     }
87 
setParseIntegerOnly(boolean value)88     public void setParseIntegerOnly(boolean value) {
89         throw new RuntimeException("Stub!");
90     }
91 
getInstance()92     public static final java.text.NumberFormat getInstance() {
93         throw new RuntimeException("Stub!");
94     }
95 
getInstance(java.util.Locale inLocale)96     public static java.text.NumberFormat getInstance(java.util.Locale inLocale) {
97         throw new RuntimeException("Stub!");
98     }
99 
getNumberInstance()100     public static final java.text.NumberFormat getNumberInstance() {
101         throw new RuntimeException("Stub!");
102     }
103 
getNumberInstance(java.util.Locale inLocale)104     public static java.text.NumberFormat getNumberInstance(java.util.Locale inLocale) {
105         throw new RuntimeException("Stub!");
106     }
107 
getIntegerInstance()108     public static final java.text.NumberFormat getIntegerInstance() {
109         throw new RuntimeException("Stub!");
110     }
111 
getIntegerInstance(java.util.Locale inLocale)112     public static java.text.NumberFormat getIntegerInstance(java.util.Locale inLocale) {
113         throw new RuntimeException("Stub!");
114     }
115 
getCurrencyInstance()116     public static final java.text.NumberFormat getCurrencyInstance() {
117         throw new RuntimeException("Stub!");
118     }
119 
getCurrencyInstance(java.util.Locale inLocale)120     public static java.text.NumberFormat getCurrencyInstance(java.util.Locale inLocale) {
121         throw new RuntimeException("Stub!");
122     }
123 
getPercentInstance()124     public static final java.text.NumberFormat getPercentInstance() {
125         throw new RuntimeException("Stub!");
126     }
127 
getPercentInstance(java.util.Locale inLocale)128     public static java.text.NumberFormat getPercentInstance(java.util.Locale inLocale) {
129         throw new RuntimeException("Stub!");
130     }
131 
getAvailableLocales()132     public static java.util.Locale[] getAvailableLocales() {
133         throw new RuntimeException("Stub!");
134     }
135 
hashCode()136     public int hashCode() {
137         throw new RuntimeException("Stub!");
138     }
139 
equals(java.lang.Object obj)140     public boolean equals(java.lang.Object obj) {
141         throw new RuntimeException("Stub!");
142     }
143 
clone()144     public java.lang.Object clone() {
145         throw new RuntimeException("Stub!");
146     }
147 
isGroupingUsed()148     public boolean isGroupingUsed() {
149         throw new RuntimeException("Stub!");
150     }
151 
setGroupingUsed(boolean newValue)152     public void setGroupingUsed(boolean newValue) {
153         throw new RuntimeException("Stub!");
154     }
155 
getMaximumIntegerDigits()156     public int getMaximumIntegerDigits() {
157         throw new RuntimeException("Stub!");
158     }
159 
setMaximumIntegerDigits(int newValue)160     public void setMaximumIntegerDigits(int newValue) {
161         throw new RuntimeException("Stub!");
162     }
163 
getMinimumIntegerDigits()164     public int getMinimumIntegerDigits() {
165         throw new RuntimeException("Stub!");
166     }
167 
setMinimumIntegerDigits(int newValue)168     public void setMinimumIntegerDigits(int newValue) {
169         throw new RuntimeException("Stub!");
170     }
171 
getMaximumFractionDigits()172     public int getMaximumFractionDigits() {
173         throw new RuntimeException("Stub!");
174     }
175 
setMaximumFractionDigits(int newValue)176     public void setMaximumFractionDigits(int newValue) {
177         throw new RuntimeException("Stub!");
178     }
179 
getMinimumFractionDigits()180     public int getMinimumFractionDigits() {
181         throw new RuntimeException("Stub!");
182     }
183 
setMinimumFractionDigits(int newValue)184     public void setMinimumFractionDigits(int newValue) {
185         throw new RuntimeException("Stub!");
186     }
187 
getCurrency()188     public java.util.Currency getCurrency() {
189         throw new RuntimeException("Stub!");
190     }
191 
setCurrency(java.util.Currency currency)192     public void setCurrency(java.util.Currency currency) {
193         throw new RuntimeException("Stub!");
194     }
195 
getRoundingMode()196     public java.math.RoundingMode getRoundingMode() {
197         throw new RuntimeException("Stub!");
198     }
199 
setRoundingMode(java.math.RoundingMode roundingMode)200     public void setRoundingMode(java.math.RoundingMode roundingMode) {
201         throw new RuntimeException("Stub!");
202     }
203 
204     @UnsupportedAppUsage
getInstance(java.util.Locale desiredLocale, int choice)205     private static java.text.NumberFormat getInstance(java.util.Locale desiredLocale, int choice) {
206         throw new RuntimeException("Stub!");
207     }
208 
readObject(java.io.ObjectInputStream stream)209     private void readObject(java.io.ObjectInputStream stream)
210             throws java.lang.ClassNotFoundException, java.io.IOException {
211         throw new RuntimeException("Stub!");
212     }
213 
writeObject(java.io.ObjectOutputStream stream)214     private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException {
215         throw new RuntimeException("Stub!");
216     }
217 
218     private static final int CURRENCYSTYLE = 1; // 0x1
219 
220     public static final int FRACTION_FIELD = 1; // 0x1
221 
222     private static final int INTEGERSTYLE = 3; // 0x3
223 
224     public static final int INTEGER_FIELD = 0; // 0x0
225 
226     private static final int NUMBERSTYLE = 0; // 0x0
227 
228     private static final int PERCENTSTYLE = 2; // 0x2
229 
230     static final int currentSerialVersion = 1; // 0x1
231 
232     private boolean groupingUsed = true;
233 
234     private byte maxFractionDigits = 3; // 0x3
235 
236     private byte maxIntegerDigits = 40; // 0x28
237 
238     private int maximumFractionDigits = 3; // 0x3
239 
240     private int maximumIntegerDigits = 40; // 0x28
241 
242     private byte minFractionDigits = 0; // 0x0
243 
244     private byte minIntegerDigits = 1; // 0x1
245 
246     private int minimumFractionDigits = 0; // 0x0
247 
248     private int minimumIntegerDigits = 1; // 0x1
249 
250     private boolean parseIntegerOnly = false;
251 
252     private int serialVersionOnStream = 1; // 0x1
253 
254     static final long serialVersionUID = -2308460125733713944L; // 0xdff6b3bf137d07e8L
255 
256     @SuppressWarnings({"unchecked", "deprecation", "all"})
257     public static class Field extends java.text.Format.Field {
258 
Field(java.lang.String name)259         protected Field(java.lang.String name) {
260             super(null);
261             throw new RuntimeException("Stub!");
262         }
263 
readResolve()264         protected java.lang.Object readResolve() throws java.io.InvalidObjectException {
265             throw new RuntimeException("Stub!");
266         }
267 
268         public static final java.text.NumberFormat.Field CURRENCY;
269 
270         static {
271             CURRENCY = null;
272         }
273 
274         public static final java.text.NumberFormat.Field DECIMAL_SEPARATOR;
275 
276         static {
277             DECIMAL_SEPARATOR = null;
278         }
279 
280         public static final java.text.NumberFormat.Field EXPONENT;
281 
282         static {
283             EXPONENT = null;
284         }
285 
286         public static final java.text.NumberFormat.Field EXPONENT_SIGN;
287 
288         static {
289             EXPONENT_SIGN = null;
290         }
291 
292         public static final java.text.NumberFormat.Field EXPONENT_SYMBOL;
293 
294         static {
295             EXPONENT_SYMBOL = null;
296         }
297 
298         public static final java.text.NumberFormat.Field FRACTION;
299 
300         static {
301             FRACTION = null;
302         }
303 
304         public static final java.text.NumberFormat.Field GROUPING_SEPARATOR;
305 
306         static {
307             GROUPING_SEPARATOR = null;
308         }
309 
310         public static final java.text.NumberFormat.Field INTEGER;
311 
312         static {
313             INTEGER = null;
314         }
315 
316         public static final java.text.NumberFormat.Field PERCENT;
317 
318         static {
319             PERCENT = null;
320         }
321 
322         public static final java.text.NumberFormat.Field PERMILLE;
323 
324         static {
325             PERMILLE = null;
326         }
327 
328         public static final java.text.NumberFormat.Field SIGN;
329 
330         static {
331             SIGN = null;
332         }
333 
334         private static final java.util.Map<java.lang.String, java.text.NumberFormat.Field>
335                 instanceMap;
336 
337         static {
338             instanceMap = null;
339         }
340 
341         private static final long serialVersionUID = 7494728892700160890L; // 0x6802a038193ff37aL
342     }
343 }
344