• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 1996, 2018, 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 java.math;
27 
28 @SuppressWarnings({"unchecked", "deprecation", "all"})
29 public class BigInteger extends java.lang.Number implements java.lang.Comparable<java.math.BigInteger> {
30 
BigInteger(byte[] val, int off, int len)31     public BigInteger(byte[] val, int off, int len) { throw new RuntimeException("Stub!"); }
32 
BigInteger(byte[] val)33     public BigInteger(byte[] val) { throw new RuntimeException("Stub!"); }
34 
BigInteger(int signum, byte[] magnitude, int off, int len)35     public BigInteger(int signum, byte[] magnitude, int off, int len) { throw new RuntimeException("Stub!"); }
36 
BigInteger(int signum, byte[] magnitude)37     public BigInteger(int signum, byte[] magnitude) { throw new RuntimeException("Stub!"); }
38 
BigInteger(@ibcore.util.NonNull java.lang.String val, int radix)39     public BigInteger(@libcore.util.NonNull java.lang.String val, int radix) { throw new RuntimeException("Stub!"); }
40 
BigInteger(@ibcore.util.NonNull java.lang.String val)41     public BigInteger(@libcore.util.NonNull java.lang.String val) { throw new RuntimeException("Stub!"); }
42 
BigInteger(int numBits, @libcore.util.NonNull java.util.Random rnd)43     public BigInteger(int numBits, @libcore.util.NonNull java.util.Random rnd) { throw new RuntimeException("Stub!"); }
44 
BigInteger(int bitLength, int certainty, @libcore.util.NonNull java.util.Random rnd)45     public BigInteger(int bitLength, int certainty, @libcore.util.NonNull java.util.Random rnd) { throw new RuntimeException("Stub!"); }
46 
probablePrime(int bitLength, @libcore.util.NonNull java.util.Random rnd)47     @libcore.util.NonNull public static BigInteger probablePrime(int bitLength, @libcore.util.NonNull java.util.Random rnd) { throw new RuntimeException("Stub!"); }
48 
nextProbablePrime()49     @libcore.util.NonNull public BigInteger nextProbablePrime() { throw new RuntimeException("Stub!"); }
50 
lucasLehmerSequence(int z, @libcore.util.NonNull BigInteger k, @libcore.util.NonNull BigInteger n)51     @libcore.util.NonNull private static BigInteger lucasLehmerSequence(int z, @libcore.util.NonNull BigInteger k, @libcore.util.NonNull BigInteger n) { throw new RuntimeException("Stub!"); }
52 
valueOf(long val)53     @libcore.util.NonNull public static BigInteger valueOf(long val) { throw new RuntimeException("Stub!"); }
54 
55     @libcore.util.NonNull public static final BigInteger ZERO = null;
56 
57     @libcore.util.NonNull public static final BigInteger ONE = null;
58 
59     @libcore.util.NonNull public static final java.math.BigInteger TWO = null;
60 
61     @libcore.util.NonNull public static final BigInteger TEN = null;
62 
add(@ibcore.util.NonNull BigInteger val)63     @libcore.util.NonNull public BigInteger add(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
64 
subtract(@ibcore.util.NonNull BigInteger val)65     @libcore.util.NonNull public BigInteger subtract(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
66 
multiply(@ibcore.util.NonNull BigInteger val)67     @libcore.util.NonNull public BigInteger multiply(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
68 
divide(@ibcore.util.NonNull BigInteger val)69     @libcore.util.NonNull public BigInteger divide(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
70 
divideAndRemainder(@ibcore.util.NonNull BigInteger val)71     @libcore.util.NonNull public BigInteger[] divideAndRemainder(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
72 
remainder(@ibcore.util.NonNull BigInteger val)73     @libcore.util.NonNull public BigInteger remainder(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
74 
pow(int exponent)75     @libcore.util.NonNull public BigInteger pow(int exponent) { throw new RuntimeException("Stub!"); }
76 
gcd(@ibcore.util.NonNull BigInteger val)77     @libcore.util.NonNull public BigInteger gcd(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
78 
abs()79     @libcore.util.NonNull public BigInteger abs() { throw new RuntimeException("Stub!"); }
80 
negate()81     @libcore.util.NonNull public BigInteger negate() { throw new RuntimeException("Stub!"); }
82 
signum()83     public int signum() { return 0; }
84 
sqrt()85     @libcore.util.NonNull public BigInteger sqrt() { throw new RuntimeException("Stub!"); }
86 
sqrtAndRemainder()87     @libcore.util.NonNull public BigInteger[] sqrtAndRemainder() { throw new RuntimeException("Stub!"); }
88 
mod(@ibcore.util.NonNull BigInteger m)89     @libcore.util.NonNull public BigInteger mod(@libcore.util.NonNull BigInteger m) { throw new RuntimeException("Stub!"); }
90 
modPow(@ibcore.util.NonNull BigInteger exponent, @libcore.util.NonNull BigInteger m)91     @libcore.util.NonNull public BigInteger modPow(@libcore.util.NonNull BigInteger exponent, @libcore.util.NonNull BigInteger m) { throw new RuntimeException("Stub!"); }
92 
modInverse(@ibcore.util.NonNull BigInteger m)93     @libcore.util.NonNull public BigInteger modInverse(@libcore.util.NonNull BigInteger m) { throw new RuntimeException("Stub!"); }
94 
shiftLeft(int n)95     @libcore.util.NonNull public BigInteger shiftLeft(int n) { throw new RuntimeException("Stub!"); }
96 
shiftRight(int n)97     @libcore.util.NonNull public BigInteger shiftRight(int n) { throw new RuntimeException("Stub!"); }
98 
and(@ibcore.util.NonNull BigInteger val)99     @libcore.util.NonNull public BigInteger and(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
100 
or(@ibcore.util.NonNull BigInteger val)101     @libcore.util.NonNull public BigInteger or(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
102 
xor(@ibcore.util.NonNull BigInteger val)103     @libcore.util.NonNull public BigInteger xor(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
104 
not()105     @libcore.util.NonNull public BigInteger not() { throw new RuntimeException("Stub!"); }
106 
andNot(@ibcore.util.NonNull BigInteger val)107     @libcore.util.NonNull public BigInteger andNot(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
108 
testBit(int n)109     public boolean testBit(int n) { return 0; }
110 
setBit(int n)111     @libcore.util.NonNull public BigInteger setBit(int n) { throw new RuntimeException("Stub!"); }
112 
clearBit(int n)113     @libcore.util.NonNull public BigInteger clearBit(int n) { throw new RuntimeException("Stub!"); }
114 
flipBit(int n)115     @libcore.util.NonNull public BigInteger flipBit(int n) { throw new RuntimeException("Stub!"); }
116 
getLowestSetBit()117     public int getLowestSetBit() { return 0; }
118 
bitLength()119     public int bitLength() { return 0; }
120 
bitCount()121     public int bitCount() { return 0; }
122 
isProbablePrime(int certainty)123     public boolean isProbablePrime(int certainty) { return false; }
124 
compareTo(@ibcore.util.NonNull BigInteger val)125     public int compareTo(@libcore.util.NonNull BigInteger val) { return 0; }
126 
equals(@ibcore.util.Nullable Object x)127     public boolean equals(@libcore.util.Nullable Object x) { return false; }
128 
min(@ibcore.util.NonNull BigInteger val)129     @libcore.util.NonNull public BigInteger min(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
130 
max(@ibcore.util.NonNull BigInteger val)131     @libcore.util.NonNull public BigInteger max(@libcore.util.NonNull BigInteger val) { throw new RuntimeException("Stub!"); }
132 
hashCode()133     public int hashCode() { return 0; }
134 
toString(int radix)135     @libcore.util.NonNull public java.lang.String toString(int radix) { throw new RuntimeException("Stub!"); }
136 
toString()137     @libcore.util.NonNull public java.lang.String toString() { throw new RuntimeException("Stub!"); }
138 
toByteArray()139     public byte[] toByteArray() { return null; }
140 
intValue()141     public int intValue() { return 0; }
142 
longValue()143     public long longValue() { return 0L; }
144 
floatValue()145     public float floatValue() { return 0.0f; }
146 
doubleValue()147     public double doubleValue() { return 0.0; }
148 
longValueExact()149     public long longValueExact() { return 0L; }
150 
intValueExact()151     public int intValueExact() { return 0; }
152 
shortValueExact()153     public short shortValueExact() { return 0; }
154 
byteValueExact()155     public byte byteValueExact() { return 0; }
156 }
157