Class PaymentId


  • public class PaymentId
    extends Object
    A payment identifier used to uniquely identify a payment to LDK.
    • Method Detail

      • hash

        public long hash()
        Checks if two PaymentIds contain equal inner contents.
      • clone

        public PaymentId clone()
        Creates a copy of the PaymentId
        Overrides:
        clone in class Object
      • 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