3 import CommonBase from './CommonBase';
4 import * as bindings from '../bindings' // TODO: figure out location
8 export default class RetryAttempts extends CommonBase {
9 constructor(_dummy: object, ptr: number) {
14 protected finalize() {
18 bindings.RetryAttempts_free(this.ptr);
21 public number get_a() {
22 number ret = bindings.RetryAttempts_get_a(this.ptr);
26 public void set_a(number val) {
27 bindings.RetryAttempts_set_a(this.ptr, val);
30 public static RetryAttempts constructor_new(number a_arg) {
31 number ret = bindings.RetryAttempts_new(a_arg);
32 const ret_hu_conv: RetryAttempts = new RetryAttempts(null, ret);
33 ret_hu_conv.ptrs_to.add(ret_hu_conv);
37 public RetryAttempts clone() {
38 number ret = bindings.RetryAttempts_clone(this.ptr);
39 const ret_hu_conv: RetryAttempts = new RetryAttempts(null, ret);
40 ret_hu_conv.ptrs_to.add(this);
44 public boolean eq(RetryAttempts b) {
45 boolean ret = bindings.RetryAttempts_eq(this.ptr, b == null ? 0 : b.ptr & ~1);
50 public number hash() {
51 number ret = bindings.RetryAttempts_hash(this.ptr);