Universe::JavaBigInteger class

The JavaBigInteger class is a wrapper allowing to easily handle Java objects that are instances of BigInteger.

Public static functions

static auto newInstance(int value) -> Universe::JavaBigInteger
static auto newInstance(const Universe::BigInteger& value) -> Universe::JavaBigInteger
static auto of(easyjni::JavaObject bigInteger) -> Universe::JavaBigInteger

Public functions

auto operator*() -> easyjni::JavaObject
auto asBigInteger() -> Universe::BigInteger

Function documentation

static Universe::JavaBigInteger Universe::JavaBigInteger::newInstance(int value)

Parameters
value The value of the BigInteger to create.
Returns The created object.

Creates a new Java object that is an instance of BigInteger with the given value.

static Universe::JavaBigInteger Universe::JavaBigInteger::newInstance(const Universe::BigInteger& value)

Parameters
value The value of the BigInteger to create.
Returns The created object.

Creates a new Java object that is an instance of BigInteger with the given value.

static Universe::JavaBigInteger Universe::JavaBigInteger::of(easyjni::JavaObject bigInteger)

Parameters
bigInteger The existing Java object.
Returns The wrapper for the object.

Creates a new JavaBigInteger from an existing Java object that is an instance of BigInteger.

easyjni::JavaObject Universe::JavaBigInteger::operator*()

Returns The wrapped Java object.

Gives the Java object that is wrapped in this JavaBigInteger.

Universe::BigInteger Universe::JavaBigInteger::asBigInteger()

Returns The BigInteger representation of this Java object.

Gives the representation of this JavaBigInteger as a native BigInteger.