Package org.ldk.structs
Class ErroneousField
- java.lang.Object
-
- org.ldk.structs.ErroneousField
-
public class ErroneousField extends Object
The field in the [`InvoiceRequest`] or the [`Bolt12Invoice`] that contained an error. [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest [`Bolt12Invoice`]: crate::offers::invoice::Bolt12Invoice
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErroneousFieldclone()Creates a copy of the ErroneousFieldprotected voidfinalize()Option_CVec_u8ZZget_suggested_value()A value to use for the TLV field to avoid the error.longget_tlv_fieldnum()The type number of the TLV field containing the error.static ErroneousFieldof(long tlv_fieldnum_arg, Option_CVec_u8ZZ suggested_value_arg)Constructs a new ErroneousField given each fieldvoidset_suggested_value(Option_CVec_u8ZZ val)A value to use for the TLV field to avoid the error.voidset_tlv_fieldnum(long val)The type number of the TLV field containing the error.
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_tlv_fieldnum
public long get_tlv_fieldnum()
The type number of the TLV field containing the error.
-
set_tlv_fieldnum
public void set_tlv_fieldnum(long val)
The type number of the TLV field containing the error.
-
get_suggested_value
public Option_CVec_u8ZZ get_suggested_value()
A value to use for the TLV field to avoid the error. Returns a copy of the field.
-
set_suggested_value
public void set_suggested_value(Option_CVec_u8ZZ val)
A value to use for the TLV field to avoid the error.
-
of
public static ErroneousField of(long tlv_fieldnum_arg, Option_CVec_u8ZZ suggested_value_arg)
Constructs a new ErroneousField given each field
-
clone
public ErroneousField clone()
Creates a copy of the ErroneousField
-
-