Class BigInt

java.lang.Object
com.oracle.truffle.js.runtime.BigInt
All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject, Comparable<BigInt>

public final class BigInt extends Object implements Comparable<BigInt>, com.oracle.truffle.api.interop.TruffleObject
  • Field Details

    • ZERO

      public static final BigInt ZERO
    • ONE

      public static final BigInt ONE
    • NEGATIVE_ONE

      public static final BigInt NEGATIVE_ONE
    • TWO

      public static final BigInt TWO
    • MAX_INT

      public static final BigInt MAX_INT
    • MIN_INT

      public static final BigInt MIN_INT
  • Constructor Details

  • Method Details

    • fromBigInteger

      public static BigInt fromBigInteger(BigInteger value)
    • fromForeignBigInteger

      public static BigInt fromForeignBigInteger(BigInteger value)
    • valueOf

      public static BigInt valueOf(String s)
    • valueOf

      public static BigInt valueOf(long i)
    • valueOfUnsigned

      public static BigInt valueOfUnsigned(long i)
    • intValue

      public int intValue()
    • doubleValue

      public double doubleValue()
    • doubleValueOf

      public static double doubleValueOf(BigInteger value)
    • bigIntegerValue

      public BigInteger bigIntegerValue()
    • toBigInt64

      public BigInt toBigInt64()
    • toBigUint64

      public BigInt toBigUint64()
    • pow

      public BigInt pow(int e)
    • mod

      public BigInt mod(BigInt m)
    • compareTo

      public int compareTo(BigInt b)
      Specified by:
      compareTo in interface Comparable<BigInt>
    • compareValueTo

      public int compareValueTo(long b)
    • compareValueTo

      public int compareValueTo(double b)
    • subtract

      public BigInt subtract(BigInt b)
    • add

      public BigInt add(BigInt b)
    • toString

      public String toString(int radix)
    • toTString

      public com.oracle.truffle.api.strings.TruffleString toTString()
    • toTString

      public com.oracle.truffle.api.strings.TruffleString toTString(int radix)
    • testBit

      public boolean testBit(int n)
    • signum

      public int signum()
    • negate

      public BigInt negate()
    • not

      public BigInt not()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • and

      public BigInt and(BigInt b)
    • or

      public BigInt or(BigInt b)
    • xor

      public BigInt xor(BigInt b)
    • multiply

      public BigInt multiply(BigInt b)
    • divide

      public BigInt divide(BigInt b)
    • remainder

      public BigInt remainder(BigInt b)
    • divideAndRemainder

      public BigInt[] divideAndRemainder(BigInt b)
    • shiftLeft

      public BigInt shiftLeft(int b)
    • shiftRight

      public BigInt shiftRight(int b)
    • abs

      public BigInt abs()
    • longValueExact

      public long longValueExact()
    • longValue

      public long longValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fitsInLong

      public boolean fitsInLong()
    • fitsInDouble

      public boolean fitsInDouble()
    • isForeign

      public boolean isForeign()
    • clearForeign

      public BigInt clearForeign()
    • bitLength

      public int bitLength()