1 /* 2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 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.misc; 27 28 @SuppressWarnings({"unchecked", "deprecation", "all"}) 29 public class FormattedFloatingDecimal { 30 FormattedFloatingDecimal( int precision, sun.misc.FormattedFloatingDecimal.Form form, sun.misc.FloatingDecimal.BinaryToASCIIConverter fdConverter)31 private FormattedFloatingDecimal( 32 int precision, 33 sun.misc.FormattedFloatingDecimal.Form form, 34 sun.misc.FloatingDecimal.BinaryToASCIIConverter fdConverter) { 35 throw new RuntimeException("Stub!"); 36 } 37 valueOf( double d, int precision, sun.misc.FormattedFloatingDecimal.Form form)38 public static sun.misc.FormattedFloatingDecimal valueOf( 39 double d, int precision, sun.misc.FormattedFloatingDecimal.Form form) { 40 throw new RuntimeException("Stub!"); 41 } 42 getBuffer()43 private static char[] getBuffer() { 44 throw new RuntimeException("Stub!"); 45 } 46 getExponentRounded()47 public int getExponentRounded() { 48 throw new RuntimeException("Stub!"); 49 } 50 getMantissa()51 public char[] getMantissa() { 52 throw new RuntimeException("Stub!"); 53 } 54 getExponent()55 public char[] getExponent() { 56 throw new RuntimeException("Stub!"); 57 } 58 applyPrecision(int decExp, char[] digits, int nDigits, int prec)59 private static int applyPrecision(int decExp, char[] digits, int nDigits, int prec) { 60 throw new RuntimeException("Stub!"); 61 } 62 fillCompatible( int precision, char[] digits, int nDigits, int exp, boolean isNegative)63 private void fillCompatible( 64 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { 65 throw new RuntimeException("Stub!"); 66 } 67 create(boolean isNegative, int size)68 private static char[] create(boolean isNegative, int size) { 69 throw new RuntimeException("Stub!"); 70 } 71 fillDecimal( int precision, char[] digits, int nDigits, int exp, boolean isNegative)72 private void fillDecimal( 73 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { 74 throw new RuntimeException("Stub!"); 75 } 76 fillScientific( int precision, char[] digits, int nDigits, int exp, boolean isNegative)77 private void fillScientific( 78 int precision, char[] digits, int nDigits, int exp, boolean isNegative) { 79 throw new RuntimeException("Stub!"); 80 } 81 82 @dalvik.annotation.compat.UnsupportedAppUsage private static boolean $assertionsDisabled; 83 84 private int decExponentRounded; 85 86 private char[] exponent; 87 88 private char[] mantissa; 89 90 private static final java.lang.ThreadLocal<java.lang.Object> threadLocalCharBuffer; 91 92 static { 93 threadLocalCharBuffer = null; 94 } 95 96 @SuppressWarnings({"unchecked", "deprecation", "all"}) 97 public static enum Form { 98 @dalvik.annotation.compat.UnsupportedAppUsage 99 SCIENTIFIC, 100 @dalvik.annotation.compat.UnsupportedAppUsage 101 COMPATIBLE, 102 @dalvik.annotation.compat.UnsupportedAppUsage 103 DECIMAL_FLOAT, 104 GENERAL; 105 Form()106 private Form() { 107 throw new RuntimeException("Stub!"); 108 } 109 } 110 } 111