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 UntrustedString
clone()
Creates a copy of the UntrustedStringboolean
eq(UntrustedString b)
Checks if two UntrustedStrings contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
String
get_a()
static UntrustedString
of(String a_arg)
Constructs a new UntrustedString given each fieldstatic Result_UntrustedStringDecodeErrorZ
read(byte[] ser)
Read a UntrustedString from a byte array, created by UntrustedString_writevoid
set_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
-
-