Update java bindings with new generator and new upstream code
[ldk-java] / src / main / java / org / ldk / structs / DecodeError.java
1 package org.ldk.structs;
2
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
5 import org.ldk.util.*;
6 import java.util.Arrays;
7
8
9 /**
10  * An error in decoding a message or struct.
11  */
12 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
13 public class DecodeError extends CommonBase {
14         DecodeError(Object _dummy, long ptr) { super(ptr); }
15         @Override @SuppressWarnings("deprecation")
16         protected void finalize() throws Throwable {
17                 super.finalize();
18                 if (ptr != 0) { bindings.DecodeError_free(ptr); }
19         }
20
21         /**
22          * Creates a copy of the DecodeError
23          */
24         public DecodeError clone() {
25                 long ret = bindings.DecodeError_clone(this.ptr);
26                 DecodeError ret_hu_conv = new DecodeError(null, ret);
27                 ret_hu_conv.ptrs_to.add(this);
28                 return ret_hu_conv;
29         }
30
31 }