intValue() public method

public intValue ( ) : int
return int
Example #1
0
 public static object reduce(BigInteger val)
 {
     //return (val.bitLength() < 32) ? (object)val.intValue() : val;
     int bitLength = val.bitLength();
     return (bitLength < 32)
         ? (object)val.intValue()
         : (bitLength < 64)
             ? (object)val.longValue()
             : val;
 }