io.realm.kotlin.internal.interop.realm_query_arg_t Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jni-swig-stub Show documentation
Show all versions of jni-swig-stub Show documentation
Wrapper for interacting with Realm Kotlin native code from the JVM. This artifact is not supposed to be consumed directly, but through 'io.realm.kotlin:gradle-plugin:3.0.0' instead.
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.2.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package io.realm.kotlin.internal.interop;
public class realm_query_arg_t {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected realm_query_arg_t(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(realm_query_arg_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected static long swigRelease(realm_query_arg_t 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;
realmcJNI.delete_realm_query_arg_t(swigCPtr);
}
swigCPtr = 0;
}
}
public void setNb_args(long value) {
realmcJNI.realm_query_arg_t_nb_args_set(swigCPtr, this, value);
}
public long getNb_args() {
return realmcJNI.realm_query_arg_t_nb_args_get(swigCPtr, this);
}
public void setIs_list(boolean value) {
realmcJNI.realm_query_arg_t_is_list_set(swigCPtr, this, value);
}
public boolean getIs_list() {
return realmcJNI.realm_query_arg_t_is_list_get(swigCPtr, this);
}
public void setArg(realm_value_t value) {
realmcJNI.realm_query_arg_t_arg_set(swigCPtr, this, realm_value_t.getCPtr(value), value);
}
public realm_value_t getArg() {
long cPtr = realmcJNI.realm_query_arg_t_arg_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_value_t(cPtr, false);
}
public realm_query_arg_t() {
this(realmcJNI.new_realm_query_arg_t(), true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy