-
Enhancement
-
Resolution: Won't Fix
-
P4
-
1.2.0, 5.0
-
generic
-
generic
Name: krT82822 Date: 08/10/99
java.math.BigInteger should have a method called getMagnitude()
which returns a byte array. It should produce data that can
be passed back to the BigInteger(int signum, byte[] magnitude)
constructor.
This would be more efficient than calling
biginteger.abs().toByteArray(), and that call
does not always produce the identical array.
Also, it is good practice to provide methods that
extract the data from an object that was used to
construct it.
(Review ID: 93363)
======================================================================
###@###.### 10/28/04 01:03 GMT
java.math.BigInteger should have a method called getMagnitude()
which returns a byte array. It should produce data that can
be passed back to the BigInteger(int signum, byte[] magnitude)
constructor.
This would be more efficient than calling
biginteger.abs().toByteArray(), and that call
does not always produce the identical array.
Also, it is good practice to provide methods that
extract the data from an object that was used to
construct it.
(Review ID: 93363)
======================================================================
###@###.### 10/28/04 01:03 GMT
- relates to
-
JDK-4026465 Provide more byte array constructors for BigInteger
-
- Resolved
-