Package org.ldk.structs
Class PaymentId
- java.lang.Object
-
- org.ldk.structs.PaymentId
-
public class PaymentId extends Object
A payment identifier used to uniquely identify a payment to LDK.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentIdclone()Creates a copy of the PaymentIdbooleaneq(PaymentId b)Checks if two PaymentIds contain equal inner contents.protected voidfinalize()longhash()Checks if two PaymentIds contain equal inner contents.static Result_PaymentIdDecodeErrorZread(byte[] ser)Read a PaymentId from a byte array, created by PaymentId_writebyte[]write()Serialize the PaymentId object into a byte array which can be read by PaymentId_read
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
hash
public long hash()
Checks if two PaymentIds contain equal inner contents.
-
eq
public boolean eq(PaymentId b)
Checks if two PaymentIds 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 PaymentId object into a byte array which can be read by PaymentId_read
-
read
public static Result_PaymentIdDecodeErrorZ read(byte[] ser)
Read a PaymentId from a byte array, created by PaymentId_write
-
-