content: /* ----------------------------------------------------------------------------
   * This file was automatically generated by SWIG (https://www.swig.org).
   * Version 4.3.1
   *
   * Do not make changes to this file unless you know what you are doing - modify
   * the SWIG interface file instead.
   * ----------------------------------------------------------------------------- */
  
  package org.libtorrent4j.swig;
  
  public class settings_interface {
    private transient long swigCPtr;
    protected transient boolean swigCMemOwn;
  
    protected settings_interface(long cPtr, boolean cMemoryOwn) {
      swigCMemOwn = cMemoryOwn;
      swigCPtr = cPtr;
    }
  
    protected static long getCPtr(settings_interface obj) {
      return (obj == null) ? 0 : obj.swigCPtr;
    }
  
    protected static long swigRelease(settings_interface obj) {
      long ptr = 0;
      if (obj != null) {
        if (!obj.swigCMemOwn)
          throw new RuntimeException("Cannot release ownership as memory is not owned");
        ptr = obj.swigCPtr;
        obj.swigCMemOwn = false;
        obj.delete();
      }
      return ptr;
    }
  
    public synchronized void delete() {
      if (swigCPtr != 0) {
        if (swigCMemOwn) {
          swigCMemOwn = false;
          throw new UnsupportedOperationException("C++ destructor does not have public access");
        }
        swigCPtr = 0;
      }
    }
  
    public void set_str(int name, String val) {
      libtorrent_jni.settings_interface_set_str(swigCPtr, this, name, val);
    }
  
    public void set_int(int name, int val) {
      libtorrent_jni.settings_interface_set_int(swigCPtr, this, name, val);
    }
  
    public void set_bool(int name, boolean val) {
      libtorrent_jni.settings_interface_set_bool(swigCPtr, this, name, val);
    }
  
    public boolean has_val(int name) {
      return libtorrent_jni.settings_interface_has_val(swigCPtr, this, name);
    }
  
    public String get_str(int name) {
      return libtorrent_jni.settings_interface_get_str(swigCPtr, this, name);
    }
  
    public int get_int(int name) {
      return libtorrent_jni.settings_interface_get_int(swigCPtr, this, name);
    }
  
    public boolean get_bool(int name) {
      return libtorrent_jni.settings_interface_get_bool(swigCPtr, this, name);
    }
  
  }
  