Mercurial > projects > dwt2
comparison base/src/java/math/BigInteger.d @ 82:b2d6122fa189
Added base classes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 14 Apr 2009 12:11:09 +0200 |
parents | |
children | 48d4ee626868 |
comparison
equal
deleted
inserted
replaced
81:383ce7bd736b | 82:b2d6122fa189 |
---|---|
1 module java.math.BigInteger; | |
2 | |
3 import java.lang.all; | |
4 import java.util.Random; | |
5 | |
6 class BigInteger : Number { | |
7 | |
8 static BigInteger ONE; | |
9 static BigInteger ZERO; | |
10 | |
11 this(byte[] val){ | |
12 implMissing(__FILE__, __LINE__ ); | |
13 } | |
14 this(int signum, byte[] magnitude){ | |
15 implMissing(__FILE__, __LINE__ ); | |
16 } | |
17 this(int bitLength, int certainty, Random rnd){ | |
18 implMissing(__FILE__, __LINE__ ); | |
19 } | |
20 this(int numBits, Random rnd){ | |
21 implMissing(__FILE__, __LINE__ ); | |
22 } | |
23 this(String val){ | |
24 implMissing(__FILE__, __LINE__ ); | |
25 } | |
26 this(String val, int radix){ | |
27 implMissing(__FILE__, __LINE__ ); | |
28 } | |
29 BigInteger abs(){ | |
30 implMissing(__FILE__, __LINE__ ); | |
31 return null; | |
32 } | |
33 BigInteger add(BigInteger val){ | |
34 implMissing(__FILE__, __LINE__ ); | |
35 return null; | |
36 } | |
37 BigInteger and(BigInteger val){ | |
38 implMissing(__FILE__, __LINE__ ); | |
39 return null; | |
40 } | |
41 BigInteger andNot(BigInteger val){ | |
42 implMissing(__FILE__, __LINE__ ); | |
43 return null; | |
44 } | |
45 int bitCount(){ | |
46 implMissing(__FILE__, __LINE__ ); | |
47 return 0; | |
48 } | |
49 int bitLength(){ | |
50 implMissing(__FILE__, __LINE__ ); | |
51 return 0; | |
52 } | |
53 BigInteger clearBit(int n){ | |
54 implMissing(__FILE__, __LINE__ ); | |
55 return null; | |
56 } | |
57 int compareTo(BigInteger val){ | |
58 implMissing(__FILE__, __LINE__ ); | |
59 return 0; | |
60 } | |
61 int compareTo(Object o){ | |
62 implMissing(__FILE__, __LINE__ ); | |
63 return 0; | |
64 } | |
65 BigInteger divide(BigInteger val){ | |
66 implMissing(__FILE__, __LINE__ ); | |
67 return null; | |
68 } | |
69 BigInteger[] divideAndRemainder(BigInteger val){ | |
70 implMissing(__FILE__, __LINE__ ); | |
71 return null; | |
72 } | |
73 double doubleValue(){ | |
74 implMissing(__FILE__, __LINE__ ); | |
75 return 0; | |
76 } | |
77 bool equals(Object x){ | |
78 implMissing(__FILE__, __LINE__ ); | |
79 return 0; | |
80 } | |
81 BigInteger flipBit(int n){ | |
82 implMissing(__FILE__, __LINE__ ); | |
83 return null; | |
84 } | |
85 float floatValue(){ | |
86 implMissing(__FILE__, __LINE__ ); | |
87 return 0; | |
88 } | |
89 BigInteger gcd(BigInteger val){ | |
90 implMissing(__FILE__, __LINE__ ); | |
91 return null; | |
92 } | |
93 int getLowestSetBit(){ | |
94 implMissing(__FILE__, __LINE__ ); | |
95 return 0; | |
96 } | |
97 int hashCode(){ | |
98 implMissing(__FILE__, __LINE__ ); | |
99 return 0; | |
100 } | |
101 int intValue(){ | |
102 implMissing(__FILE__, __LINE__ ); | |
103 return 0; | |
104 } | |
105 bool isProbablePrime(int certainty){ | |
106 implMissing(__FILE__, __LINE__ ); | |
107 return 0; | |
108 } | |
109 long longValue(){ | |
110 implMissing(__FILE__, __LINE__ ); | |
111 return 0; | |
112 } | |
113 BigInteger max(BigInteger val){ | |
114 implMissing(__FILE__, __LINE__ ); | |
115 return null; | |
116 } | |
117 BigInteger min(BigInteger val){ | |
118 implMissing(__FILE__, __LINE__ ); | |
119 return null; | |
120 } | |
121 BigInteger mod(BigInteger m){ | |
122 implMissing(__FILE__, __LINE__ ); | |
123 return null; | |
124 } | |
125 BigInteger modInverse(BigInteger m){ | |
126 implMissing(__FILE__, __LINE__ ); | |
127 return null; | |
128 } | |
129 BigInteger modPow(BigInteger exponent, BigInteger m){ | |
130 implMissing(__FILE__, __LINE__ ); | |
131 return null; | |
132 } | |
133 BigInteger multiply(BigInteger val){ | |
134 implMissing(__FILE__, __LINE__ ); | |
135 return null; | |
136 } | |
137 BigInteger negate(){ | |
138 implMissing(__FILE__, __LINE__ ); | |
139 return null; | |
140 } | |
141 BigInteger not(){ | |
142 implMissing(__FILE__, __LINE__ ); | |
143 return null; | |
144 } | |
145 BigInteger or(BigInteger val){ | |
146 implMissing(__FILE__, __LINE__ ); | |
147 return null; | |
148 } | |
149 BigInteger pow(int exponent){ | |
150 implMissing(__FILE__, __LINE__ ); | |
151 return null; | |
152 } | |
153 static BigInteger probablePrime(int bitLength, Random rnd){ | |
154 implMissing(__FILE__, __LINE__ ); | |
155 return null; | |
156 } | |
157 BigInteger remainder(BigInteger val){ | |
158 implMissing(__FILE__, __LINE__ ); | |
159 return null; | |
160 } | |
161 BigInteger setBit(int n){ | |
162 implMissing(__FILE__, __LINE__ ); | |
163 return null; | |
164 } | |
165 BigInteger shiftLeft(int n){ | |
166 implMissing(__FILE__, __LINE__ ); | |
167 return null; | |
168 } | |
169 BigInteger shiftRight(int n){ | |
170 implMissing(__FILE__, __LINE__ ); | |
171 return null; | |
172 } | |
173 int signum(){ | |
174 implMissing(__FILE__, __LINE__ ); | |
175 return 0; | |
176 } | |
177 BigInteger subtract(BigInteger val){ | |
178 implMissing(__FILE__, __LINE__ ); | |
179 return null; | |
180 } | |
181 bool testBit(int n){ | |
182 implMissing(__FILE__, __LINE__ ); | |
183 return 0; | |
184 } | |
185 byte[] toByteArray(){ | |
186 implMissing(__FILE__, __LINE__ ); | |
187 return null; | |
188 } | |
189 String toString(){ | |
190 implMissing(__FILE__, __LINE__ ); | |
191 return null; | |
192 } | |
193 String toString(int radix){ | |
194 implMissing(__FILE__, __LINE__ ); | |
195 return null; | |
196 } | |
197 static BigInteger valueOf(long val){ | |
198 implMissing(__FILE__, __LINE__ ); | |
199 return null; | |
200 } | |
201 BigInteger xor(BigInteger val){ | |
202 implMissing(__FILE__, __LINE__ ); | |
203 return null; | |
204 } | |
205 | |
206 } |