public final class V8ValueBigInteger extends V8ValueBigNumber<java.math.BigInteger>
This feature is experimental and not completed yet.
value
OBJECT_CONVERTER, v8Runtime
Constructor and Description |
---|
V8ValueBigInteger(V8Runtime v8Runtime)
Instantiates a new V8 value big integer.
|
V8ValueBigInteger(V8Runtime v8Runtime,
java.math.BigInteger value)
Instantiates a new V8 value big integer.
|
V8ValueBigInteger(V8Runtime v8Runtime,
java.lang.String value)
Instantiates a new V8 value big integer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
A simulation of the JS
if (variable) |
double |
asDouble()
As double.
|
int |
asInt()
As int.
|
long |
asLong()
As long.
|
V8ValueBigInteger |
toClone(boolean referenceCopy)
Get a clone of the current V8 value.
|
java.math.BigInteger |
toPrimitive()
To primitive big integer.
|
java.lang.String |
toString() |
java.lang.String |
toString(int radix)
Number.prototype.toString()
The toString() method of Number values returns a string representing this number value.
|
close, equals, getValue, isEmpty, isPresent, sameValue, strictEquals
checkV8Runtime, getV8Runtime, isClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asString, isNull, isNullOrUndefined, isUndefined
toClone
public V8ValueBigInteger(V8Runtime v8Runtime) throws JavetException
v8Runtime
- the V8 runtimeJavetException
- the javet exceptionpublic V8ValueBigInteger(V8Runtime v8Runtime, java.math.BigInteger value) throws JavetException
v8Runtime
- the V8 runtimevalue
- the big integerJavetException
- the javet exceptionpublic V8ValueBigInteger(V8Runtime v8Runtime, java.lang.String value) throws JavetException
v8Runtime
- the V8 runtimevalue
- the string valueJavetException
- the javet exceptionpublic boolean asBoolean()
IV8Value
if (variable)
public double asDouble()
IV8Value
public int asInt()
IV8Value
public long asLong()
IV8Value
public V8ValueBigInteger toClone(boolean referenceCopy) throws JavetException
IV8Cloneable
referenceCopy
- the reference copyJavetException
- the javet exceptionpublic java.math.BigInteger toPrimitive()
public java.lang.String toString()
toString
in class V8ValuePrimitive<java.math.BigInteger>
public java.lang.String toString(int radix)
radix
- An integer in the range 2 through 36 specifying the base to use for representing the number value.
Defaults to 10.