All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frostwire.jlibtorrent.swig.int_int_pair Maven / Gradle / Ivy

There is a newer version: 1.2.0.18
Show newest version
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 3.0.8
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package com.frostwire.jlibtorrent.swig;

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

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

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

  protected void finalize() {
    delete();
  }

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

  public int_int_pair() {
    this(libtorrent_jni.new_int_int_pair__SWIG_0(), true);
  }

  public int_int_pair(int first, int second) {
    this(libtorrent_jni.new_int_int_pair__SWIG_1(first, second), true);
  }

  public int_int_pair(int_int_pair p) {
    this(libtorrent_jni.new_int_int_pair__SWIG_2(int_int_pair.getCPtr(p), p), true);
  }

  public void setFirst(int value) {
    libtorrent_jni.int_int_pair_first_set(swigCPtr, this, value);
  }

  public int getFirst() {
    return libtorrent_jni.int_int_pair_first_get(swigCPtr, this);
  }

  public void setSecond(int value) {
    libtorrent_jni.int_int_pair_second_set(swigCPtr, this, value);
  }

  public int getSecond() {
    return libtorrent_jni.int_int_pair_second_get(swigCPtr, this);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy