Package org.ldk.structs
Class NodeFeatures
- java.lang.Object
-
- org.ldk.structs.NodeFeatures
-
public class NodeFeatures extends Object
Features used within a `node_announcement` message.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeFeatures
clone()
Creates a copy of the NodeFeaturesstatic NodeFeatures
empty()
Create a blank Features with no features setboolean
eq(NodeFeatures b)
Checks if two NodeFeaturess contain equal inner contents.protected void
finalize()
static NodeFeatures
known()
Creates a Features with the bits set which are known by the implementationstatic Result_NodeFeaturesDecodeErrorZ
read(byte[] ser)
Read a NodeFeatures from a byte array, created by NodeFeatures_writeboolean
requires_unknown_bits()
Returns true if this `Features` object contains unknown feature flags which are set as \"required\".boolean
supports_payment_secret()
Returns whether the `payment_secret` feature is supported.byte[]
write()
Serialize the NodeFeatures object into a byte array which can be read by NodeFeatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(NodeFeatures b)
Checks if two NodeFeaturess 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 NodeFeatures clone()
Creates a copy of the NodeFeatures
-
empty
public static NodeFeatures empty()
Create a blank Features with no features set
-
known
public static NodeFeatures 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\".
-
supports_payment_secret
public boolean supports_payment_secret()
Returns whether the `payment_secret` feature is supported.
-
write
public byte[] write()
Serialize the NodeFeatures object into a byte array which can be read by NodeFeatures_read
-
read
public static Result_NodeFeaturesDecodeErrorZ read(byte[] ser)
Read a NodeFeatures from a byte array, created by NodeFeatures_write
-
-