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