Package org.ldk.structs
Class OfferFeatures
- java.lang.Object
-
- org.ldk.structs.OfferFeatures
-
public class OfferFeatures extends Object
Features used within an `offer`.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OfferFeaturesclone()Creates a copy of the OfferFeaturesstatic OfferFeaturesempty()Create a blank Features with no features setbooleaneq(OfferFeatures b)Checks if two OfferFeaturess contain equal inner contents.booleanequals(Object o)protected voidfinalize()static Result_OfferFeaturesDecodeErrorZread(byte[] ser)Read a OfferFeatures from a byte array, created by OfferFeatures_writebooleanrequires_unknown_bits()Returns true if this `Features` object contains unknown feature flags which are set as \"required\".byte[]write()Serialize the OfferFeatures object into a byte array which can be read by OfferFeatures_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
eq
public boolean eq(OfferFeatures b)
Checks if two OfferFeaturess 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 OfferFeatures clone()
Creates a copy of the OfferFeatures
-
empty
public static OfferFeatures 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 OfferFeatures object into a byte array which can be read by OfferFeatures_read
-
read
public static Result_OfferFeaturesDecodeErrorZ read(byte[] ser)
Read a OfferFeatures from a byte array, created by OfferFeatures_write
-
-