Package org.ldk.structs
Class RouteHint
- java.lang.Object
-
- org.ldk.structs.RouteHint
-
public class RouteHint extends Object
A list of hops along a payment path terminating with a channel to the recipient.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteHintclone()Creates a copy of the RouteHintbooleaneq(RouteHint b)Checks if two RouteHints contain equal inner contents.booleanequals(Object o)protected voidfinalize()RouteHintHop[]get_a()longhash()Checks if two RouteHints contain equal inner contents.inthashCode()static RouteHintof(RouteHintHop[] a_arg)Constructs a new RouteHint given each fieldstatic Result_RouteHintDecodeErrorZread(byte[] ser)Read a RouteHint from a byte array, created by RouteHint_writevoidset_a(RouteHintHop[] val)byte[]write()Serialize the RouteHint object into a byte array which can be read by RouteHint_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
get_a
public RouteHintHop[] get_a()
-
set_a
public void set_a(RouteHintHop[] val)
-
of
public static RouteHint of(RouteHintHop[] a_arg)
Constructs a new RouteHint given each field
-
hash
public long hash()
Checks if two RouteHints contain equal inner contents.
-
eq
public boolean eq(RouteHint b)
Checks if two RouteHints 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 RouteHint object into a byte array which can be read by RouteHint_read
-
read
public static Result_RouteHintDecodeErrorZ read(byte[] ser)
Read a RouteHint from a byte array, created by RouteHint_write
-
-