[Java] Update auto-generated Java bindings to LDK 0.0.121
[ldk-java] / src / main / java / org / ldk / structs / ChannelTypeFeatures.java
index 6c8d03d37184c20fb08055242fa05be1ee6f2b4b..8071b043b2e47a40e36749b409f7e7d71c0d36b2 100644 (file)
@@ -64,6 +64,18 @@ public class ChannelTypeFeatures extends CommonBase {
                return ret_hu_conv;
        }
 
+       /**
+        * Generates a non-cryptographic 64-bit hash of the ChannelTypeFeatures.
+        */
+       public long hash() {
+               long ret = bindings.ChannelTypeFeatures_hash(this.ptr);
+               Reference.reachabilityFence(this);
+               return ret;
+       }
+
+       @Override public int hashCode() {
+               return (int)this.hash();
+       }
        /**
         * Create a blank Features with no features set
         */