Update java bindings with new generator and new upstream code
[ldk-java] / src / main / java / org / ldk / structs / MonitorUpdateError.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  * General Err type for ChannelMonitor actions. Generally, this implies that the data provided is
11  * inconsistent with the ChannelMonitor being called. eg for ChannelMonitor::update_monitor this
12  * means you tried to update a monitor for a different channel or the ChannelMonitorUpdate was
13  * corrupted.
14  * Contains a developer-readable error message.
15  */
16 @SuppressWarnings("unchecked") // We correctly assign various generic arrays
17 public class MonitorUpdateError extends CommonBase {
18         MonitorUpdateError(Object _dummy, long ptr) { super(ptr); }
19         @Override @SuppressWarnings("deprecation")
20         protected void finalize() throws Throwable {
21                 super.finalize();
22                 if (ptr != 0) { bindings.MonitorUpdateError_free(ptr); }
23         }
24
25         /**
26          * Creates a copy of the MonitorUpdateError
27          */
28         public MonitorUpdateError clone() {
29                 long ret = bindings.MonitorUpdateError_clone(this.ptr);
30                 MonitorUpdateError ret_hu_conv = new MonitorUpdateError(null, ret);
31                 ret_hu_conv.ptrs_to.add(this);
32                 return ret_hu_conv;
33         }
34
35 }