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.booleanequals(Object o)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_writebooleanrequires_basic_mpp()Checks if this feature is required.booleanrequires_payment_secret()Checks if this feature is required.booleanrequires_unknown_bits()Returns true if this `Features` object contains unknown feature flags which are set as \"required\".booleanrequires_variable_length_onion()Checks if this feature is required.voidset_basic_mpp_optional()Set this feature as optional.voidset_basic_mpp_required()Set this feature as required.voidset_payment_secret_optional()Set this feature as optional.voidset_payment_secret_required()Set this feature as required.voidset_variable_length_onion_optional()Set this feature as optional.voidset_variable_length_onion_required()Set this feature as required.booleansupports_basic_mpp()Checks if this feature is supported.booleansupports_payment_secret()Checks if this feature is supported.booleansupports_variable_length_onion()Checks if this 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
-
requires_unknown_bits
public boolean requires_unknown_bits()
Returns true if this `Features` object contains unknown feature flags which are set as \"required\".
-
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
-
set_variable_length_onion_optional
public void set_variable_length_onion_optional()
Set this feature as optional.
-
set_variable_length_onion_required
public void set_variable_length_onion_required()
Set this feature as required.
-
supports_variable_length_onion
public boolean supports_variable_length_onion()
Checks if this feature is supported.
-
requires_variable_length_onion
public boolean requires_variable_length_onion()
Checks if this feature is required.
-
set_payment_secret_optional
public void set_payment_secret_optional()
Set this feature as optional.
-
set_payment_secret_required
public void set_payment_secret_required()
Set this feature as required.
-
supports_payment_secret
public boolean supports_payment_secret()
Checks if this feature is supported.
-
requires_payment_secret
public boolean requires_payment_secret()
Checks if this feature is required.
-
set_basic_mpp_optional
public void set_basic_mpp_optional()
Set this feature as optional.
-
set_basic_mpp_required
public void set_basic_mpp_required()
Set this feature as required.
-
supports_basic_mpp
public boolean supports_basic_mpp()
Checks if this feature is supported.
-
requires_basic_mpp
public boolean requires_basic_mpp()
Checks if this feature is required.
-
-