Package org.ldk.structs
Class InitFeatures
- java.lang.Object
-
- org.ldk.structs.InitFeatures
-
public class InitFeatures extends Object
Features used within an `init` message.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InitFeaturesclone()Creates a copy of the InitFeaturesstatic InitFeaturesempty()Create a blank Features with no features setbooleaneq(InitFeatures b)Checks if two InitFeaturess contain equal inner contents.protected voidfinalize()static InitFeaturesknown()Creates a Features with the bits set which are known by the implementationstatic Result_InitFeaturesDecodeErrorZread(byte[] ser)Read a InitFeatures from a byte array, created by InitFeatures_writebooleansupports_payment_secret()Returns whether the `payment_secret` feature is supported.byte[]write()Serialize the InitFeatures object into a byte array which can be read by InitFeatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(InitFeatures b)
Checks if two InitFeaturess 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 InitFeatures clone()
Creates a copy of the InitFeatures
-
empty
public static InitFeatures empty()
Create a blank Features with no features set
-
known
public static InitFeatures 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 InitFeatures object into a byte array which can be read by InitFeatures_read
-
read
public static Result_InitFeaturesDecodeErrorZ read(byte[] ser)
Read a InitFeatures from a byte array, created by InitFeatures_write
-
-