@SuppressWarnings("unchecked") // We correctly assign various generic arrays
public class HTLCUpdate extends CommonBase {
HTLCUpdate(Object _dummy, long ptr) { super(ptr); }
@Override @SuppressWarnings("deprecation")
protected void finalize() throws Throwable {
super.finalize();
@SuppressWarnings("unchecked") // We correctly assign various generic arrays
public class HTLCUpdate extends CommonBase {
HTLCUpdate(Object _dummy, long ptr) { super(ptr); }
@Override @SuppressWarnings("deprecation")
protected void finalize() throws Throwable {
super.finalize();
- public static HTLCUpdate constructor_clone(HTLCUpdate orig) {
- long ret = bindings.HTLCUpdate_clone(orig == null ? 0 : orig.ptr & ~1);
+ /**
+ * Creates a copy of the HTLCUpdate
+ */
+ public HTLCUpdate clone() {
+ long ret = bindings.HTLCUpdate_clone(this.ptr);
- public byte[] write(HTLCUpdate obj) {
- byte[] ret = bindings.HTLCUpdate_write(obj == null ? 0 : obj.ptr & ~1);
- this.ptrs_to.add(obj);
+ /**
+ * Serialize the HTLCUpdate object into a byte array which can be read by HTLCUpdate_read
+ */
+ public byte[] write() {
+ byte[] ret = bindings.HTLCUpdate_write(this.ptr);