Package org.ldk.structs
Class UntrustedString
- java.lang.Object
-
- org.ldk.structs.UntrustedString
-
public class UntrustedString extends Object
Struct to `Display` fields in a safe way using `PrintableString`
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UntrustedStringclone()Creates a copy of the UntrustedStringbooleaneq(UntrustedString b)Checks if two UntrustedStrings contain equal inner contents.booleanequals(Object o)protected voidfinalize()Stringget_a()static UntrustedStringof(String a_arg)Constructs a new UntrustedString given each fieldstatic Result_UntrustedStringDecodeErrorZread(byte[] ser)Read a UntrustedString from a byte array, created by UntrustedString_writevoidset_a(String val)byte[]write()Serialize the UntrustedString object into a byte array which can be read by UntrustedString_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_a
public String get_a()
-
set_a
public void set_a(String val)
-
of
public static UntrustedString of(String a_arg)
Constructs a new UntrustedString given each field
-
clone
public UntrustedString clone()
Creates a copy of the UntrustedString
-
eq
public boolean eq(UntrustedString b)
Checks if two UntrustedStrings 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.
-
write
public byte[] write()
Serialize the UntrustedString object into a byte array which can be read by UntrustedString_read
-
read
public static Result_UntrustedStringDecodeErrorZ read(byte[] ser)
Read a UntrustedString from a byte array, created by UntrustedString_write
-
-