units / org.apache.tuweni.units.bigints / UInt384 / valueOf

valueOf

static fun valueOf(value: Long): UInt384 (source)

Return a UInt384 containing the specified value.

Parameters

value - The value to create a UInt384 for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
A UInt384 containing the specified value.

static fun valueOf(value: BigInteger): UInt384 (source)

Return a UInt384 containing the specified value.

Parameters

value - the value to create a UInt384 for

Exceptions

IllegalArgumentException - if the value is negative or too large to be represented as a UInt384

Return
a UInt384 containing the specified value