Package org.ldk.structs
Class NodeAlias
- java.lang.Object
-
- org.ldk.structs.NodeAlias
-
public class NodeAlias extends Object
A user-defined name for a node, which may be used when displaying the node in a graph. Since node aliases are provided by third parties, they are a potential avenue for injection attacks. Care must be taken when processing.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeAlias
clone()
Creates a copy of the NodeAliasboolean
eq(NodeAlias b)
Checks if two NodeAliass contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
byte[]
get_a()
static NodeAlias
of(byte[] a_arg)
Constructs a new NodeAlias given each fieldstatic Result_NodeAliasDecodeErrorZ
read(byte[] ser)
Read a NodeAlias from a byte array, created by NodeAlias_writevoid
set_a(byte[] val)
byte[]
write()
Serialize the NodeAlias object into a byte array which can be read by NodeAlias_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_a
public byte[] get_a()
-
set_a
public void set_a(byte[] val)
-
of
public static NodeAlias of(byte[] a_arg)
Constructs a new NodeAlias given each field
-
eq
public boolean eq(NodeAlias b)
Checks if two NodeAliass 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 NodeAlias object into a byte array which can be read by NodeAlias_read
-
read
public static Result_NodeAliasDecodeErrorZ read(byte[] ser)
Read a NodeAlias from a byte array, created by NodeAlias_write
-
-