public final class BigInt extends Object implements Comparable<BigInt>, com.oracle.truffle.api.interop.TruffleObject
| Modifier and Type | Field and Description |
|---|---|
static BigInt |
MAX_INT |
static BigInt |
MIN_INT |
static BigInt |
NEGATIVE_ONE |
static BigInt |
ONE |
static BigInt |
TWO |
static BigInt |
ZERO |
| Constructor and Description |
|---|
BigInt(BigInteger v) |
BigInt(String s,
int r) |
| Modifier and Type | Method and Description |
|---|---|
BigInt |
add(BigInt b) |
BigInt |
and(BigInt b) |
BigInteger |
bigIntegerValue() |
int |
compareTo(BigInt b) |
int |
compareValueTo(double b) |
int |
compareValueTo(long b) |
BigInt |
divide(BigInt b) |
double |
doubleValue() |
boolean |
equals(Object obj) |
boolean |
fitsInLong() |
static BigInt |
fromBigInteger(BigInteger value) |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
long |
longValueExact() |
BigInt |
mod(BigInt m) |
BigInt |
multiply(BigInt b) |
BigInt |
negate() |
BigInt |
not() |
BigInt |
or(BigInt b) |
BigInt |
pow(int e) |
BigInt |
remainder(BigInt b) |
BigInt |
shiftLeft(int b) |
BigInt |
shiftRight(int b) |
int |
signum() |
BigInt |
subtract(BigInt b) |
boolean |
testBit(int n) |
BigInt |
toBigInt64() |
BigInt |
toBigUint64() |
String |
toString() |
String |
toString(int radix) |
static BigInt |
valueOf(long i) |
static BigInt |
valueOf(String s) |
static BigInt |
valueOfUnsigned(long i) |
BigInt |
xor(BigInt b) |
public static final BigInt ZERO
public static final BigInt ONE
public static final BigInt NEGATIVE_ONE
public static final BigInt TWO
public static final BigInt MAX_INT
public static final BigInt MIN_INT
public BigInt(String s, int r)
public BigInt(BigInteger v)
public static BigInt fromBigInteger(BigInteger value)
public static BigInt valueOf(long i)
public static BigInt valueOfUnsigned(long i)
public int intValue()
public double doubleValue()
public BigInteger bigIntegerValue()
public BigInt toBigInt64()
public BigInt toBigUint64()
public BigInt pow(int e)
public int compareTo(BigInt b)
compareTo in interface Comparable<BigInt>public int compareValueTo(long b)
public int compareValueTo(double b)
public String toString(int radix)
public boolean testBit(int n)
public int signum()
public BigInt negate()
public BigInt not()
public BigInt shiftLeft(int b)
public BigInt shiftRight(int b)
public long longValueExact()
public long longValue()
public boolean fitsInLong()