[Java] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / src / main / java / org / ldk / structs / BlindedHopFeatures.java
index 1a35196d4d2e01147b06121e5a05fe299f8883dd..8d13ba0eb58f344e1744789d13c9977cd419a446 100644 (file)
@@ -26,7 +26,7 @@ public class BlindedHopFeatures extends CommonBase {
         * Two objects with NULL inner values will be considered "equal" here.
         */
        public boolean eq(org.ldk.structs.BlindedHopFeatures b) {
-               boolean ret = bindings.BlindedHopFeatures_eq(this.ptr, b == null ? 0 : b.ptr);
+               boolean ret = bindings.BlindedHopFeatures_eq(this.ptr, b.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(b);
                if (this != null) { this.ptrs_to.add(b); };
@@ -55,6 +55,18 @@ public class BlindedHopFeatures extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the BlindedHopFeatures.
+        */
+       public long hash() {
+               long ret = bindings.BlindedHopFeatures_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Create a blank Features with no features set
         */
@@ -70,7 +82,7 @@ public class BlindedHopFeatures extends CommonBase {
         * Returns true if this `Features` object contains required features unknown by `other`.
         */
        public boolean requires_unknown_bits_from(org.ldk.structs.BlindedHopFeatures other) {
-               boolean ret = bindings.BlindedHopFeatures_requires_unknown_bits_from(this.ptr, other == null ? 0 : other.ptr);
+               boolean ret = bindings.BlindedHopFeatures_requires_unknown_bits_from(this.ptr, other.ptr);
                Reference.reachabilityFence(this);
                Reference.reachabilityFence(other);
                if (this != null) { this.ptrs_to.add(other); };