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

valueOf

static fun valueOf(value: Int): UInt32 (source)

Return a UInt32 containing the specified value.

Parameters

value - The value to create a UInt32 for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
A UInt32 containing the specified value.

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

Return a UInt32 containing the specified value.

Parameters

value - the value to create a UInt32 for

Exceptions

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

Return
a UInt32 containing the specified value