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 RouteHint
clone()
Creates a copy of the RouteHintboolean
eq(RouteHint b)
Checks if two RouteHints contain equal inner contents.boolean
equals(Object o)
protected void
finalize()
RouteHintHop[]
get_a()
long
hash()
Generates a non-cryptographic 64-bit hash of the RouteHint.int
hashCode()
static RouteHint
of(RouteHintHop[] a_arg)
Constructs a new RouteHint given each fieldstatic Result_RouteHintDecodeErrorZ
read(byte[] ser)
Read a RouteHint from a byte array, created by RouteHint_writevoid
set_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()
Generates a non-cryptographic 64-bit hash of the RouteHint.
-
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
-
-