monad.jni.services.gen.PartitionMappingValue Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package monad.jni.services.gen;
public class PartitionMappingValue extends BaseBufferSupport {
private long swigCPtr;
public PartitionMappingValue(long cPtr, boolean cMemoryOwn) {
super(CMonadJNI.PartitionMappingValue_SWIGUpcast(cPtr), cMemoryOwn);
swigCPtr = cPtr;
}
public static long getCPtr(PartitionMappingValue obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
CMonadJNI.delete_PartitionMappingValue(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public PartitionMappingValue(short partition_id) {
this(CMonadJNI.new_PartitionMappingValue__SWIG_0(partition_id), true);
}
public PartitionMappingValue(short partition_id, int data_seq) {
this(CMonadJNI.new_PartitionMappingValue__SWIG_1(partition_id, data_seq), true);
}
public PartitionMappingValue(byte[] val) {
this(CMonadJNI.new_PartitionMappingValue__SWIG_2( val ), true);
}
public short PartitionId() {
return CMonadJNI.PartitionMappingValue_PartitionId(swigCPtr, this);
}
public int DataSeq() {
return CMonadJNI.PartitionMappingValue_DataSeq(swigCPtr, this);
}
}