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) |
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(BigInteger v)
public static BigInt fromBigInteger(BigInteger value)
public static BigInt fromForeignBigInteger(BigInteger value)
public static BigInt valueOf(long i)
public static BigInt valueOfUnsigned(long i)
public int intValue()
public double doubleValue()
public static double doubleValueOf(BigInteger value)
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 com.oracle.truffle.api.strings.TruffleString toTString()
public com.oracle.truffle.api.strings.TruffleString toTString(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 BigInt abs()
public long longValueExact()
public long longValue()
public boolean fitsInLong()
public boolean fitsInDouble()
public boolean isForeign()
public BigInt clearForeign()