/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.3.0
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.chilkatsoft;

public class CkHashtable {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected CkHashtable(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(CkHashtable obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected static long swigRelease(CkHashtable 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;
  }

  @SuppressWarnings({"deprecation", "removal"})
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        chilkatJNI.delete_CkHashtable(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public CkHashtable() {
    this(chilkatJNI.new_CkHashtable(), true);
  }

  public int get_Count() {
    return chilkatJNI.CkHashtable_get_Count(swigCPtr, this);
  }

  public void get_DebugLogFilePath(CkString str) {
    chilkatJNI.CkHashtable_get_DebugLogFilePath(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String debugLogFilePath() {
    return chilkatJNI.CkHashtable_debugLogFilePath(swigCPtr, this);
  }

  public void put_DebugLogFilePath(String newVal) {
    chilkatJNI.CkHashtable_put_DebugLogFilePath(swigCPtr, this, newVal);
  }

  public void get_LastErrorHtml(CkString str) {
    chilkatJNI.CkHashtable_get_LastErrorHtml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorHtml() {
    return chilkatJNI.CkHashtable_lastErrorHtml(swigCPtr, this);
  }

  public void get_LastErrorText(CkString str) {
    chilkatJNI.CkHashtable_get_LastErrorText(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorText() {
    return chilkatJNI.CkHashtable_lastErrorText(swigCPtr, this);
  }

  public void get_LastErrorXml(CkString str) {
    chilkatJNI.CkHashtable_get_LastErrorXml(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String lastErrorXml() {
    return chilkatJNI.CkHashtable_lastErrorXml(swigCPtr, this);
  }

  public boolean get_LastMethodSuccess() {
    return chilkatJNI.CkHashtable_get_LastMethodSuccess(swigCPtr, this);
  }

  public void put_LastMethodSuccess(boolean newVal) {
    chilkatJNI.CkHashtable_put_LastMethodSuccess(swigCPtr, this, newVal);
  }

  public boolean get_VerboseLogging() {
    return chilkatJNI.CkHashtable_get_VerboseLogging(swigCPtr, this);
  }

  public void put_VerboseLogging(boolean newVal) {
    chilkatJNI.CkHashtable_put_VerboseLogging(swigCPtr, this, newVal);
  }

  public void get_Version(CkString str) {
    chilkatJNI.CkHashtable_get_Version(swigCPtr, this, CkString.getCPtr(str), str);
  }

  public String version() {
    return chilkatJNI.CkHashtable_version(swigCPtr, this);
  }

  public boolean AddFromXmlSb(CkStringBuilder sbXml) {
    return chilkatJNI.CkHashtable_AddFromXmlSb(swigCPtr, this, CkStringBuilder.getCPtr(sbXml), sbXml);
  }

  public boolean AddInt(String key, int value) {
    return chilkatJNI.CkHashtable_AddInt(swigCPtr, this, key, value);
  }

  public boolean AddQueryParams(String queryParams) {
    return chilkatJNI.CkHashtable_AddQueryParams(swigCPtr, this, queryParams);
  }

  public boolean AddStr(String key, String value) {
    return chilkatJNI.CkHashtable_AddStr(swigCPtr, this, key, value);
  }

  public void Clear() {
    chilkatJNI.CkHashtable_Clear(swigCPtr, this);
  }

  public boolean ClearWithNewCapacity(int capacity) {
    return chilkatJNI.CkHashtable_ClearWithNewCapacity(swigCPtr, this, capacity);
  }

  public boolean Contains(String key) {
    return chilkatJNI.CkHashtable_Contains(swigCPtr, this, key);
  }

  public boolean ContainsIntKey(int key) {
    return chilkatJNI.CkHashtable_ContainsIntKey(swigCPtr, this, key);
  }

  public boolean GetKeys(CkStringTable strTable) {
    return chilkatJNI.CkHashtable_GetKeys(swigCPtr, this, CkStringTable.getCPtr(strTable), strTable);
  }

  public int LookupInt(String key) {
    return chilkatJNI.CkHashtable_LookupInt(swigCPtr, this, key);
  }

  public boolean LookupStr(String key, CkString outStr) {
    return chilkatJNI.CkHashtable_LookupStr(swigCPtr, this, key, CkString.getCPtr(outStr), outStr);
  }

  public String lookupStr(String key) {
    return chilkatJNI.CkHashtable_lookupStr(swigCPtr, this, key);
  }

  public boolean Remove(String key) {
    return chilkatJNI.CkHashtable_Remove(swigCPtr, this, key);
  }

  public boolean ToQueryString(CkString outStr) {
    return chilkatJNI.CkHashtable_ToQueryString(swigCPtr, this, CkString.getCPtr(outStr), outStr);
  }

  public String toQueryString() {
    return chilkatJNI.CkHashtable_toQueryString(swigCPtr, this);
  }

  public boolean ToXmlSb(CkStringBuilder sbXml) {
    return chilkatJNI.CkHashtable_ToXmlSb(swigCPtr, this, CkStringBuilder.getCPtr(sbXml), sbXml);
  }

}
