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

valueOf

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

Return a UInt64 containing the specified value.

Parameters

value - The value to create a UInt64 for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
A UInt64 containing the specified value.

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

Return a UInt64 containing the specified value.

Parameters

value - the value to create a UInt64 for

Exceptions

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

Return
a UInt64 containing the specified value