Package org.ldk.structs
Class InvoiceFeatures
- java.lang.Object
-
- org.ldk.structs.InvoiceFeatures
-
public class InvoiceFeatures extends Object
Features used within an invoice.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InvoiceFeaturesclone()Creates a copy of the InvoiceFeaturesstatic InvoiceFeaturesempty()Create a blank Features with no features setbooleaneq(InvoiceFeatures b)Checks if two InvoiceFeaturess contain equal inner contents.protected voidfinalize()static InvoiceFeaturesknown()Creates a Features with the bits set which are known by the implementationstatic Result_InvoiceFeaturesDecodeErrorZread(byte[] ser)Read a InvoiceFeatures from a byte array, created by InvoiceFeatures_writebooleansupports_payment_secret()Returns whether the `payment_secret` feature is supported.byte[]write()Serialize the InvoiceFeatures object into a byte array which can be read by InvoiceFeatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(InvoiceFeatures b)
Checks if two InvoiceFeaturess 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.
-
clone
public InvoiceFeatures clone()
Creates a copy of the InvoiceFeatures
-
empty
public static InvoiceFeatures empty()
Create a blank Features with no features set
-
known
public static InvoiceFeatures known()
Creates a Features with the bits set which are known by the implementation
-
supports_payment_secret
public boolean supports_payment_secret()
Returns whether the `payment_secret` feature is supported.
-
write
public byte[] write()
Serialize the InvoiceFeatures object into a byte array which can be read by InvoiceFeatures_read
-
read
public static Result_InvoiceFeaturesDecodeErrorZ read(byte[] ser)
Read a InvoiceFeatures from a byte array, created by InvoiceFeatures_write
-
-