Wrap BigInteger values for use in JS. Provides text formatting for display and access to the underlying value.

Hierarchy

  • BigIntegerWrapper

Constructors

Methods

  • Returns the wrapped value as a number.

    Returns number

    The java.math.BigInteger value converted to a JS Number.

  • Compares this wrapper to another object.

    Parameters

    • o: object

      The object to compare.

    Returns boolean

    true if o is a BigIntegerWrapper with an equal wrapped value.

  • Returns a hash code based on the wrapped value.

    Returns number

  • Returns the string representation of the wrapped java.math.BigInteger.

    Returns string

  • Returns the string representation of this value.

    Provided to match JavaScript's `valueOf` convention.

    Returns string

    The string form of this value.

  • Creates a wrapper from an integer string. The provided string may start with + or -, and must otherwise only contain the digits 0-9.

    Parameters

    • str: string

      A string representation of an integer.

    Returns BigIntegerWrapper

    A wrapper for the parsed value.