Update auto-generated bindings
[ldk-java] / src / main / java / org / ldk / structs / PayeePubKey.java
index efe6a6a7eb7f5243f8f3951db34e59b995a2f1c0..b1251eb75f51f354eef9bb98aa24104a12f159c6 100644 (file)
@@ -19,6 +19,25 @@ public class PayeePubKey extends CommonBase {
                if (ptr != 0) { bindings.PayeePubKey_free(ptr); }
        }
 
+       /**
+        * Creates a copy of the PayeePubKey
+        */
+       public PayeePubKey clone() {
+               long ret = bindings.PayeePubKey_clone(this.ptr);
+               if (ret >= 0 && ret < 1024) { return null; }
+               PayeePubKey ret_hu_conv = new PayeePubKey(null, ret);
+               ret_hu_conv.ptrs_to.add(this);
+               return ret_hu_conv;
+       }
+
+       /**
+        * Checks if two PayeePubKeys contain equal inner contents.
+        */
+       public long hash() {
+               long ret = bindings.PayeePubKey_hash(this.ptr);
+               return ret;
+       }
+
        /**
         * Checks if two PayeePubKeys contain equal inner contents.
         * This ignores pointers and is_owned flags and looks at the values in fields.
@@ -30,15 +49,4 @@ public class PayeePubKey extends CommonBase {
                return ret;
        }
 
-       /**
-        * Creates a copy of the PayeePubKey
-        */
-       public PayeePubKey clone() {
-               long ret = bindings.PayeePubKey_clone(this.ptr);
-               if (ret < 1024) { return null; }
-               PayeePubKey ret_hu_conv = new PayeePubKey(null, ret);
-               ret_hu_conv.ptrs_to.add(this);
-               return ret_hu_conv;
-       }
-
 }