Java BigInteger to toInteger(BigInteger integer)

Here you can find the source of toInteger(BigInteger integer)

Description

to Integer

License

Open Source License

Declaration

public static Integer toInteger(BigInteger integer) 

Method Source Code


//package com.java2s;
import java.math.BigInteger;

public class Main {
    public static Integer toInteger(BigInteger integer) {
        if (integer == null)
            return null;
        //TODO: no check for overflow
        return new Integer(integer.intValue());
    }//from ww  w .j av  a2s  . c om
}

Related

  1. toFixedLenByteArray(BigInteger x, int resultByteLen)
  2. toInt(BigInteger number)
  3. toInt(int length, BigInteger bi)
  4. toIntArray(BigInteger[] input)
  5. toInteger(BigInteger bi)
  6. toIntegerBytes(final BigInteger bigInt)
  7. toMinimalByteArray(BigInteger value)
  8. toObject(BigInteger x)
  9. toPaddedBytes(BigInteger bi, int length)