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

valueOf

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

Return a UInt384 containing the specified value.

Parameters

value - Long: The value to create a UInt384 for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
UInt384!: A UInt384 containing the specified value.

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

Return a UInt384 containing the specified value.

Parameters

value - BigInteger!: the value to create a UInt384 for

Exceptions

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

Return
UInt384!: a UInt384 containing the specified value