Code example for BigInteger

Methods: intValue

0
    public JExifTagNumber(short number, int radix) {
        this("" + number, radix);
    } 
 
    public JExifTagNumber(String number, int radix) {
        BigInteger n = new BigInteger(number, radix);
        if (n.intValue() < 0) {
            n = n.add(new BigInteger("10000", 16));
        } 
        this.number = n.intValue();
    } 
 
    public String toHexString() {
        return Integer.toHexString(getNumber());
    } 
 
    @Override 
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;