/** * Returns a {@code BigInteger} whose value is {@code this + value}. */ public BigInteger add(BigInteger value) { BigInt lhs = getBigInt(); BigInt rhs = value.getBigInt(); if (rhs.sign() == 0) { return this; } if (lhs.sign() == 0) { return value; } return new BigInteger(BigInt.addition(lhs, rhs)); }
/** * Returns a {@code BigInteger} whose value is {@code this + value}. */ public BigInteger add(BigInteger value) { BigInt lhs = getBigInt(); BigInt rhs = value.getBigInt(); if (rhs.sign() == 0) { return this; } if (lhs.sign() == 0) { return value; } return new BigInteger(BigInt.addition(lhs, rhs)); }
/** * Returns a {@code BigInteger} whose value is {@code this + value}. */ public BigInteger add(BigInteger value) { BigInt lhs = getBigInt(); BigInt rhs = value.getBigInt(); if (rhs.sign() == 0) { return this; } if (lhs.sign() == 0) { return value; } return new BigInteger(BigInt.addition(lhs, rhs)); }
/** * Returns a {@code BigInteger} whose value is {@code this + value}. */ public BigInteger add(BigInteger value) { BigInt lhs = getBigInt(); BigInt rhs = value.getBigInt(); if (rhs.sign() == 0) { return this; } if (lhs.sign() == 0) { return value; } return new BigInteger(BigInt.addition(lhs, rhs)); }
/** * Returns a {@code BigInteger} whose value is {@code this + value}. */ public BigInteger add(BigInteger value) { BigInt lhs = getBigInt(); BigInt rhs = value.getBigInt(); if (rhs.sign() == 0) { return this; } if (lhs.sign() == 0) { return value; } return new BigInteger(BigInt.addition(lhs, rhs)); }
/** * Returns a {@code BigInteger} whose value is {@code this + value}. */ public BigInteger add(BigInteger value) { BigInt lhs = getBigInt(); BigInt rhs = value.getBigInt(); if (rhs.sign() == 0) { return this; } if (lhs.sign() == 0) { return value; } return new BigInteger(BigInt.addition(lhs, rhs)); }
/** * Returns a {@code BigInteger} whose value is {@code this + value}. */ public BigInteger add(BigInteger value) { BigInt lhs = getBigInt(); BigInt rhs = value.getBigInt(); if (rhs.sign() == 0) { return this; } if (lhs.sign() == 0) { return value; } return new BigInteger(BigInt.addition(lhs, rhs)); }