/[classpath]/classpath/java/math/BigInteger.java
ViewVC logotype

Diff of /classpath/java/math/BigInteger.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22.2.4 by gnu_andrew, Tue Aug 2 20:12:23 2005 UTC revision 1.22.2.5 by tromey, Tue Sep 27 16:59:22 2005 UTC
# Line 57  import java.util.Random; Line 57  import java.util.Random;
57   * @date December 20, 1999.   * @date December 20, 1999.
58   * @status believed complete and correct.   * @status believed complete and correct.
59   */   */
60  public class BigInteger extends Number implements Comparable  public class BigInteger extends Number implements Comparable<BigInteger>
61  {  {
62    /** All integers are stored in 2's-complement form.    /** All integers are stored in 2's-complement form.
63     * If words == null, the ival is the value of this BigInteger.     * If words == null, the ival is the value of this BigInteger.
# Line 368  public class BigInteger extends Number i Line 368  public class BigInteger extends Number i
368      return MPN.cmp(x.words, y.words, x_len);      return MPN.cmp(x.words, y.words, x_len);
369    }    }
370    
371    // JDK1.2    /** @since 1.2 */
   public int compareTo(Object obj)  
   {  
     if (obj instanceof BigInteger)  
       return compareTo(this, (BigInteger) obj);  
     throw new ClassCastException();  
   }  
   
372    public int compareTo(BigInteger val)    public int compareTo(BigInteger val)
373    {    {
374      return compareTo(this, val);      return compareTo(this, val);

Legend:
Removed from v.1.22.2.4  
changed lines
  Added in v.1.22.2.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26