io.realm.kotlin.internal.interop.realm_value_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_value_t {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected realm_value_t(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(realm_value_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected static long swigRelease(realm_value_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_value_t(swigCPtr);
}
swigCPtr = 0;
}
}
public void setInteger(long value) {
realmcJNI.realm_value_t_integer_set(swigCPtr, this, value);
}
public long getInteger() {
return realmcJNI.realm_value_t_integer_get(swigCPtr, this);
}
public void set_boolean(boolean value) {
realmcJNI.realm_value_t__boolean_set(swigCPtr, this, value);
}
public boolean get_boolean() {
return realmcJNI.realm_value_t__boolean_get(swigCPtr, this);
}
public void setString(String value) {
realmcJNI.realm_value_t_string_set(swigCPtr, this, value);
}
public String getString() {
return realmcJNI.realm_value_t_string_get(swigCPtr, this);
}
public void setBinary(realm_binary_t value) {
realmcJNI.realm_value_t_binary_set(swigCPtr, this, realm_binary_t.getCPtr(value), value);
}
public realm_binary_t getBinary() {
long cPtr = realmcJNI.realm_value_t_binary_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_binary_t(cPtr, false);
}
public void setTimestamp(realm_timestamp_t value) {
realmcJNI.realm_value_t_timestamp_set(swigCPtr, this, realm_timestamp_t.getCPtr(value), value);
}
public realm_timestamp_t getTimestamp() {
long cPtr = realmcJNI.realm_value_t_timestamp_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_timestamp_t(cPtr, false);
}
public void setFnum(float value) {
realmcJNI.realm_value_t_fnum_set(swigCPtr, this, value);
}
public float getFnum() {
return realmcJNI.realm_value_t_fnum_get(swigCPtr, this);
}
public void setDnum(double value) {
realmcJNI.realm_value_t_dnum_set(swigCPtr, this, value);
}
public double getDnum() {
return realmcJNI.realm_value_t_dnum_get(swigCPtr, this);
}
public void setDecimal128(realm_decimal128_t value) {
realmcJNI.realm_value_t_decimal128_set(swigCPtr, this, realm_decimal128_t.getCPtr(value), value);
}
public realm_decimal128_t getDecimal128() {
long cPtr = realmcJNI.realm_value_t_decimal128_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_decimal128_t(cPtr, false);
}
public void setObject_id(realm_object_id_t value) {
realmcJNI.realm_value_t_object_id_set(swigCPtr, this, realm_object_id_t.getCPtr(value), value);
}
public realm_object_id_t getObject_id() {
long cPtr = realmcJNI.realm_value_t_object_id_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_object_id_t(cPtr, false);
}
public void setUuid(realm_uuid_t value) {
realmcJNI.realm_value_t_uuid_set(swigCPtr, this, realm_uuid_t.getCPtr(value), value);
}
public realm_uuid_t getUuid() {
long cPtr = realmcJNI.realm_value_t_uuid_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_uuid_t(cPtr, false);
}
public void setLink(realm_link_t value) {
realmcJNI.realm_value_t_link_set(swigCPtr, this, realm_link_t.getCPtr(value), value);
}
public realm_link_t getLink() {
long cPtr = realmcJNI.realm_value_t_link_get(swigCPtr, this);
return (cPtr == 0) ? null : new realm_link_t(cPtr, false);
}
public void setData(String value) {
realmcJNI.realm_value_t_data_set(swigCPtr, this, value);
}
public String getData() {
return realmcJNI.realm_value_t_data_get(swigCPtr, this);
}
public void setType(int value) {
realmcJNI.realm_value_t_type_set(swigCPtr, this, value);
}
public int getType() {
return realmcJNI.realm_value_t_type_get(swigCPtr, this);
}
public realm_value_t() {
this(realmcJNI.new_realm_value_t(), true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy