tuweni / org.apache.tuweni.units.ethereum / Gas / valueOf

valueOf

static fun valueOf(value: UInt256!): Gas! (source)

Return a Gas containing the specified value.

Parameters

value - UInt256!: The value to create a Gas for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
Gas!: A Gas containing the specified value.

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

Return a Gas containing the specified value.

Parameters

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

Exceptions

IllegalArgumentException - If the value is negative.

Return
Gas!: A Gas containing the specified value.

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

Return a Gas containing the specified value.

Parameters

value - BigInteger!: The value to create a Gas for.

Exceptions

IllegalArgumentException - If the value is negative.

Return
Gas!: A Gas containing the specified value.