/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 4.0.1 * * 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 add_piece_flags_t { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected add_piece_flags_t(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(add_piece_flags_t obj) { return (obj == null) ? 0 : obj.swigCPtr; } @SuppressWarnings("deprecation") protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; libtorrent_jni.delete_add_piece_flags_t(swigCPtr); } swigCPtr = 0; } } public add_piece_flags_t() { this(libtorrent_jni.new_add_piece_flags_t(), true); } public boolean nonZero() { return libtorrent_jni.add_piece_flags_t_nonZero(swigCPtr, this); } public boolean eq(add_piece_flags_t f) { return libtorrent_jni.add_piece_flags_t_eq(swigCPtr, this, add_piece_flags_t.getCPtr(f), f); } public boolean ne(add_piece_flags_t f) { return libtorrent_jni.add_piece_flags_t_ne(swigCPtr, this, add_piece_flags_t.getCPtr(f), f); } public add_piece_flags_t or_(add_piece_flags_t other) { return new add_piece_flags_t(libtorrent_jni.add_piece_flags_t_or_(swigCPtr, this, add_piece_flags_t.getCPtr(other), other), true); } public add_piece_flags_t and_(add_piece_flags_t other) { return new add_piece_flags_t(libtorrent_jni.add_piece_flags_t_and_(swigCPtr, this, add_piece_flags_t.getCPtr(other), other), true); } public add_piece_flags_t xor(add_piece_flags_t other) { return new add_piece_flags_t(libtorrent_jni.add_piece_flags_t_xor(swigCPtr, this, add_piece_flags_t.getCPtr(other), other), true); } public add_piece_flags_t inv() { return new add_piece_flags_t(libtorrent_jni.add_piece_flags_t_inv(swigCPtr, this), true); } public int to_int() { return libtorrent_jni.add_piece_flags_t_to_int(swigCPtr, this); } public static add_piece_flags_t all() { return new add_piece_flags_t(libtorrent_jni.add_piece_flags_t_all(), true); } }