1 package org.ldk.structs;
3 import org.ldk.impl.bindings;
4 import org.ldk.enums.*;
6 public class GossipTimestampFilter extends CommonBase {
7 GossipTimestampFilter(Object _dummy, long ptr) { super(ptr); }
8 @Override @SuppressWarnings("deprecation")
9 protected void finalize() throws Throwable {
10 bindings.GossipTimestampFilter_free(ptr); super.finalize();
13 public GossipTimestampFilter(GossipTimestampFilter orig) {
14 super(bindings.GossipTimestampFilter_clone(orig.ptr & ~1));
15 this.ptrs_to.add(orig);
18 public byte[] get_chain_hash(GossipTimestampFilter this_ptr) {
19 byte[] ret = bindings.GossipTimestampFilter_get_chain_hash(this_ptr.ptr & ~1);
20 this.ptrs_to.add(this_ptr);
24 public void set_chain_hash(GossipTimestampFilter this_ptr, byte[] val) {
25 bindings.GossipTimestampFilter_set_chain_hash(this_ptr.ptr & ~1, val);
26 this.ptrs_to.add(this_ptr);
29 public int get_first_timestamp(GossipTimestampFilter this_ptr) {
30 int ret = bindings.GossipTimestampFilter_get_first_timestamp(this_ptr.ptr & ~1);
31 this.ptrs_to.add(this_ptr);
35 public void set_first_timestamp(GossipTimestampFilter this_ptr, int val) {
36 bindings.GossipTimestampFilter_set_first_timestamp(this_ptr.ptr & ~1, val);
37 this.ptrs_to.add(this_ptr);
40 public int get_timestamp_range(GossipTimestampFilter this_ptr) {
41 int ret = bindings.GossipTimestampFilter_get_timestamp_range(this_ptr.ptr & ~1);
42 this.ptrs_to.add(this_ptr);
46 public void set_timestamp_range(GossipTimestampFilter this_ptr, int val) {
47 bindings.GossipTimestampFilter_set_timestamp_range(this_ptr.ptr & ~1, val);
48 this.ptrs_to.add(this_ptr);
51 public GossipTimestampFilter(byte[] chain_hash_arg, int first_timestamp_arg, int timestamp_range_arg) {
52 super(bindings.GossipTimestampFilter_new(chain_hash_arg, first_timestamp_arg, timestamp_range_arg));
55 // Skipped GossipTimestampFilter_read
56 // Skipped GossipTimestampFilter_write