[Java] Update auto-generated bindings to 0.0.117
[ldk-java] / src / main / java / org / ldk / structs / DelayedPaymentOutputDescriptor.java
index 577104270bf02bbdda24067d1007dee91d3534a3..c86311fdfa2d908a7571b0926868e9dd926a7394 100644 (file)
@@ -84,8 +84,6 @@ public class DelayedPaymentOutputDescriptor extends CommonBase {
 
        /**
         * The output which is referenced by the given outpoint.
-        * 
-        * Returns a copy of the field.
         */
        public TxOut get_output() {
                long ret = bindings.DelayedPaymentOutputDescriptor_get_output(this.ptr);
@@ -125,7 +123,7 @@ public class DelayedPaymentOutputDescriptor extends CommonBase {
        }
 
        /**
-        * Arbitrary identification information returned by a call to [`BaseSign::channel_keys_id`].
+        * Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`].
         * This may be useful in re-deriving keys used in the channel to spend the output.
         */
        public byte[] get_channel_keys_id() {
@@ -135,7 +133,7 @@ public class DelayedPaymentOutputDescriptor extends CommonBase {
        }
 
        /**
-        * Arbitrary identification information returned by a call to [`BaseSign::channel_keys_id`].
+        * Arbitrary identification information returned by a call to [`ChannelSigner::channel_keys_id`].
         * This may be useful in re-deriving keys used in the channel to spend the output.
         */
        public void set_channel_keys_id(byte[] val) {
@@ -199,6 +197,18 @@ public class DelayedPaymentOutputDescriptor extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the DelayedPaymentOutputDescriptor.
+        */
+       public long hash() {
+               long ret = bindings.DelayedPaymentOutputDescriptor_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Checks if two DelayedPaymentOutputDescriptors contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.