Package org.ldk.structs
Class BlindedHopFeatures
- java.lang.Object
-
- org.ldk.structs.BlindedHopFeatures
-
public class BlindedHopFeatures extends Object
Features used within BOLT 4 encrypted_data_tlv and BOLT 12 blinded_payinfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BlindedHopFeatures
clone()
Creates a copy of the BlindedHopFeaturesstatic BlindedHopFeatures
empty()
Create a blank Features with no features setboolean
eq(BlindedHopFeatures b)
Checks if two BlindedHopFeaturess contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
static Result_BlindedHopFeaturesDecodeErrorZ
read(byte[] ser)
Read a BlindedHopFeatures from a byte array, created by BlindedHopFeatures_writeboolean
requires_unknown_bits()
Returns true if this `Features` object contains unknown feature flags which are set as \"required\".byte[]
write()
Serialize the BlindedHopFeatures object into a byte array which can be read by BlindedHopFeatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(BlindedHopFeatures b)
Checks if two BlindedHopFeaturess 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 BlindedHopFeatures clone()
Creates a copy of the BlindedHopFeatures
-
empty
public static BlindedHopFeatures 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\".
-
write
public byte[] write()
Serialize the BlindedHopFeatures object into a byte array which can be read by BlindedHopFeatures_read
-
read
public static Result_BlindedHopFeaturesDecodeErrorZ read(byte[] ser)
Read a BlindedHopFeatures from a byte array, created by BlindedHopFeatures_write
-
-