com.ironcorelabs.sdk.DataSubject Maven / Gradle / Ivy
// Automatically generated by rust_swig
package com.ironcorelabs.sdk;
public final class DataSubject {
private DataSubject() {}
public static DataSubject validate(String s) throws Exception {
long ret = do_validate(s);
DataSubject convRet = new DataSubject(InternalPointerMarker.RAW_PTR, ret);
return convRet;
}
private static native long do_validate(String s) throws Exception;
public final String value() {
String ret = do_value(mNativeObj);
return ret;
}
private static native String do_value(long self);
public synchronized void delete() {
if (mNativeObj != 0) {
do_delete(mNativeObj);
mNativeObj = 0;
}
}
@Override
protected void finalize() throws Throwable {
try {
delete();
}
finally {
super.finalize();
}
}
private static native void do_delete(long me);
/*package*/ DataSubject(InternalPointerMarker marker, long ptr) {
assert marker == InternalPointerMarker.RAW_PTR;
this.mNativeObj = ptr;
}
/*package*/ long mNativeObj;
}