Package org.ldk.structs
Class TxAbort
- java.lang.Object
-
- org.ldk.structs.TxAbort
-
public class TxAbort extends Object
A tx_abort message which signals the cancellation of an in-progress transaction negotiation.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TxAbortclone()Creates a copy of the TxAbortbooleaneq(TxAbort b)Checks if two TxAborts contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDbyte[]get_data()Message data Returns a copy of the field.static TxAbortof(byte[] channel_id_arg, byte[] data_arg)Constructs a new TxAbort given each fieldstatic Result_TxAbortDecodeErrorZread(byte[] ser)Read a TxAbort from a byte array, created by TxAbort_writevoidset_channel_id(byte[] val)The channel IDvoidset_data(byte[] val)Message databyte[]write()Serialize the TxAbort object into a byte array which can be read by TxAbort_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_data
public byte[] get_data()
Message data Returns a copy of the field.
-
set_data
public void set_data(byte[] val)
Message data
-
of
public static TxAbort of(byte[] channel_id_arg, byte[] data_arg)
Constructs a new TxAbort given each field
-
eq
public boolean eq(TxAbort b)
Checks if two TxAborts 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 TxAbort object into a byte array which can be read by TxAbort_read
-
read
public static Result_TxAbortDecodeErrorZ read(byte[] ser)
Read a TxAbort from a byte array, created by TxAbort_write
-
-