Package org.ldk.structs
Class TxRemoveOutput
- java.lang.Object
-
- org.ldk.structs.TxRemoveOutput
-
public class TxRemoveOutput extends Object
A tx_remove_output message for removing an output during interactive transaction construction.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TxRemoveOutputclone()Creates a copy of the TxRemoveOutputbooleaneq(TxRemoveOutput b)Checks if two TxRemoveOutputs contain equal inner contents.booleanequals(Object o)protected voidfinalize()byte[]get_channel_id()The channel IDlongget_serial_id()The serial ID of the output to be removedstatic TxRemoveOutputof(byte[] channel_id_arg, long serial_id_arg)Constructs a new TxRemoveOutput given each fieldstatic Result_TxRemoveOutputDecodeErrorZread(byte[] ser)Read a TxRemoveOutput from a byte array, created by TxRemoveOutput_writevoidset_channel_id(byte[] val)The channel IDvoidset_serial_id(long val)The serial ID of the output to be removedbyte[]write()Serialize the TxRemoveOutput object into a byte array which can be read by TxRemoveOutput_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_serial_id
public long get_serial_id()
The serial ID of the output to be removed
-
set_serial_id
public void set_serial_id(long val)
The serial ID of the output to be removed
-
of
public static TxRemoveOutput of(byte[] channel_id_arg, long serial_id_arg)
Constructs a new TxRemoveOutput given each field
-
clone
public TxRemoveOutput clone()
Creates a copy of the TxRemoveOutput
-
eq
public boolean eq(TxRemoveOutput b)
Checks if two TxRemoveOutputs 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 TxRemoveOutput object into a byte array which can be read by TxRemoveOutput_read
-
read
public static Result_TxRemoveOutputDecodeErrorZ read(byte[] ser)
Read a TxRemoveOutput from a byte array, created by TxRemoveOutput_write
-
-