- public HTLCUpdate(HTLCUpdate orig) {
- super(bindings.HTLCUpdate_clone(orig == null ? 0 : orig.ptr & ~1));
- this.ptrs_to.add(orig);
+ /**
+ * Creates a copy of the HTLCUpdate
+ */
+ public HTLCUpdate clone() {
+ long ret = bindings.HTLCUpdate_clone(this.ptr);
+ HTLCUpdate ret_hu_conv = new HTLCUpdate(null, ret);
+ ret_hu_conv.ptrs_to.add(this);
+ return ret_hu_conv;