Package org.ldk.structs
Class Bolt12InvoiceFeatures
- java.lang.Object
-
- org.ldk.structs.Bolt12InvoiceFeatures
-
public class Bolt12InvoiceFeatures extends Object
Features used within an `invoice`.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Bolt12InvoiceFeaturesclone()Creates a copy of the Bolt12InvoiceFeaturesstatic Bolt12InvoiceFeaturesempty()Create a blank Features with no features setbooleaneq(Bolt12InvoiceFeatures b)Checks if two Bolt12InvoiceFeaturess contain equal inner contents.booleanequals(Object o)protected voidfinalize()booleanrequires_basic_mpp()Checks if this feature is required.booleanrequires_unknown_bits()Returns true if this `Features` object contains unknown feature flags which are set as \"required\".voidset_basic_mpp_optional()Set this feature as optional.voidset_basic_mpp_required()Set this feature as required.booleansupports_basic_mpp()Checks if this feature is supported.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(Bolt12InvoiceFeatures b)
Checks if two Bolt12InvoiceFeaturess 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 Bolt12InvoiceFeatures clone()
Creates a copy of the Bolt12InvoiceFeatures
-
empty
public static Bolt12InvoiceFeatures empty()
Create a blank Features with no features set
-
requires_unknown_bits
public boolean requires_unknown_bits()
Returns true if this `Features` object contains unknown feature flags which are set as \"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.
-
-