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

valueOf

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

Return a UInt64 containing the specified value.

Parameters

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

Exceptions

IllegalArgumentException - If the value is negative.

Return
UInt64!: A UInt64 containing the specified value.

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

Return a UInt64 containing the specified value.

Parameters

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

Exceptions

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

Return
UInt64!: a UInt64 containing the specified value