- public void set_proportional_millionths(RoutingFees this_ptr, int val) {
- bindings.RoutingFees_set_proportional_millionths(this_ptr.ptr & ~1, val);
- this.ptrs_to.add(this_ptr);
+ @Override public boolean equals(Object o) {
+ if (!(o instanceof RoutingFees)) return false;
+ return this.eq((RoutingFees)o);
+ }
+ long clone_ptr() {
+ long ret = bindings.RoutingFees_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ /**
+ * Creates a copy of the RoutingFees
+ */
+ public RoutingFees clone() {
+ long ret = bindings.RoutingFees_clone(this.ptr);
+ Reference.reachabilityFence(this);
+ if (ret >= 0 && ret <= 4096) { return null; }
+ org.ldk.structs.RoutingFees ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.RoutingFees(null, ret); }
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;
+ }
+
+ /**
+ * Checks if two RoutingFeess contain equal inner contents.
+ */
+ public long hash() {
+ long ret = bindings.RoutingFees_hash(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+
+ @Override public int hashCode() {
+ return (int)this.hash();
+ }
+ /**
+ * Serialize the RoutingFees object into a byte array which can be read by RoutingFees_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.RoutingFees_write(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;