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 - Int: The value to create a UInt32 for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
UInt32!: A UInt32 containing the specified value.

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

Return a UInt32 containing the specified value.

Parameters

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

Exceptions

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

Return
UInt32!: a UInt32 containing the specified value