Package org.ldk.structs
Class UpdateFee
- java.lang.Object
-
- org.ldk.structs.UpdateFee
-
public class UpdateFee extends Object
An update_fee message to be sent or received from a peer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateFeeclone()Creates a copy of the UpdateFeebooleaneq(UpdateFee b)Checks if two UpdateFees contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDintget_feerate_per_kw()Fee rate per 1000-weight of the transactionstatic UpdateFeeof(byte[] channel_id_arg, int feerate_per_kw_arg)Constructs a new UpdateFee given each fieldstatic Result_UpdateFeeDecodeErrorZread(byte[] ser)Read a UpdateFee from a byte array, created by UpdateFee_writevoidset_channel_id(byte[] val)The channel IDvoidset_feerate_per_kw(int val)Fee rate per 1000-weight of the transactionbyte[]write()Serialize the UpdateFee object into a byte array which can be read by UpdateFee_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_channel_id
public byte[] get_channel_id()
The channel ID
-
set_channel_id
public void set_channel_id(byte[] val)
The channel ID
-
get_feerate_per_kw
public int get_feerate_per_kw()
Fee rate per 1000-weight of the transaction
-
set_feerate_per_kw
public void set_feerate_per_kw(int val)
Fee rate per 1000-weight of the transaction
-
of
public static UpdateFee of(byte[] channel_id_arg, int feerate_per_kw_arg)
Constructs a new UpdateFee given each field
-
eq
public boolean eq(UpdateFee b)
Checks if two UpdateFees contain equal inner contents. This ignores pointers and is_owned flags and looks at the values in fields. Two objects with NULL inner values will be considered "equal" here.
-
write
public byte[] write()
Serialize the UpdateFee object into a byte array which can be read by UpdateFee_read
-
read
public static Result_UpdateFeeDecodeErrorZ read(byte[] ser)
Read a UpdateFee from a byte array, created by UpdateFee_write
-
-