io.realm.kotlin.internal.interop.realm_timestamp_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_timestamp_t {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected realm_timestamp_t(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(realm_timestamp_t obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected static long swigRelease(realm_timestamp_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_timestamp_t(swigCPtr);
}
swigCPtr = 0;
}
}
public void setSeconds(long value) {
realmcJNI.realm_timestamp_t_seconds_set(swigCPtr, this, value);
}
public long getSeconds() {
return realmcJNI.realm_timestamp_t_seconds_get(swigCPtr, this);
}
public void setNanoseconds(int value) {
realmcJNI.realm_timestamp_t_nanoseconds_set(swigCPtr, this, value);
}
public int getNanoseconds() {
return realmcJNI.realm_timestamp_t_nanoseconds_get(swigCPtr, this);
}
public realm_timestamp_t() {
this(realmcJNI.new_realm_timestamp_t(), true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy