/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.2 * * 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 string_lazy_entry_const_ptr_pair { private long swigCPtr; protected boolean swigCMemOwn; protected string_lazy_entry_const_ptr_pair(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(string_lazy_entry_const_ptr_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_string_lazy_entry_const_ptr_pair(swigCPtr); } swigCPtr = 0; } } public string_lazy_entry_const_ptr_pair() { this(libtorrent_jni.new_string_lazy_entry_const_ptr_pair__SWIG_0(), true); } public string_lazy_entry_const_ptr_pair(String first, lazy_entry second) { this(libtorrent_jni.new_string_lazy_entry_const_ptr_pair__SWIG_1(first, lazy_entry.getCPtr(second), second), true); } public string_lazy_entry_const_ptr_pair(string_lazy_entry_const_ptr_pair p) { this(libtorrent_jni.new_string_lazy_entry_const_ptr_pair__SWIG_2(string_lazy_entry_const_ptr_pair.getCPtr(p), p), true); } public void setFirst(String value) { libtorrent_jni.string_lazy_entry_const_ptr_pair_first_set(swigCPtr, this, value); } public String getFirst() { return libtorrent_jni.string_lazy_entry_const_ptr_pair_first_get(swigCPtr, this); } public void setSecond(lazy_entry value) { libtorrent_jni.string_lazy_entry_const_ptr_pair_second_set(swigCPtr, this, lazy_entry.getCPtr(value), value); } public lazy_entry getSecond() { long cPtr = libtorrent_jni.string_lazy_entry_const_ptr_pair_second_get(swigCPtr, this); return (cPtr == 0) ? null : new lazy_entry(cPtr, false); } }