All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com._4paradigm.openmldb.VectorUint32 Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com._4paradigm.openmldb;
public class VectorUint32 extends java.util.AbstractList implements java.util.RandomAccess {
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
protected VectorUint32(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(VectorUint32 obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
sql_router_sdkJNI.delete_VectorUint32(swigCPtr);
}
swigCPtr = 0;
}
}
public VectorUint32(long[] initialElements) {
this();
reserve(initialElements.length);
for (long element : initialElements) {
add(element);
}
}
public VectorUint32(Iterable initialElements) {
this();
for (long element : initialElements) {
add(element);
}
}
public Long get(int index) {
return doGet(index);
}
public Long set(int index, Long e) {
return doSet(index, e);
}
public boolean add(Long e) {
modCount++;
doAdd(e);
return true;
}
public void add(int index, Long e) {
modCount++;
doAdd(index, e);
}
public Long remove(int index) {
modCount++;
return doRemove(index);
}
protected void removeRange(int fromIndex, int toIndex) {
modCount++;
doRemoveRange(fromIndex, toIndex);
}
public int size() {
return doSize();
}
public VectorUint32() {
this(sql_router_sdkJNI.new_VectorUint32__SWIG_0(), true);
}
public VectorUint32(VectorUint32 other) {
this(sql_router_sdkJNI.new_VectorUint32__SWIG_1(VectorUint32.getCPtr(other), other), true);
}
public long capacity() {
return sql_router_sdkJNI.VectorUint32_capacity(swigCPtr, this);
}
public void reserve(long n) {
sql_router_sdkJNI.VectorUint32_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return sql_router_sdkJNI.VectorUint32_isEmpty(swigCPtr, this);
}
public void clear() {
sql_router_sdkJNI.VectorUint32_clear(swigCPtr, this);
}
public VectorUint32(int count, long value) {
this(sql_router_sdkJNI.new_VectorUint32__SWIG_2(count, value), true);
}
private int doSize() {
return sql_router_sdkJNI.VectorUint32_doSize(swigCPtr, this);
}
private void doAdd(long x) {
sql_router_sdkJNI.VectorUint32_doAdd__SWIG_0(swigCPtr, this, x);
}
private void doAdd(int index, long x) {
sql_router_sdkJNI.VectorUint32_doAdd__SWIG_1(swigCPtr, this, index, x);
}
private long doRemove(int index) {
return sql_router_sdkJNI.VectorUint32_doRemove(swigCPtr, this, index);
}
private long doGet(int index) {
return sql_router_sdkJNI.VectorUint32_doGet(swigCPtr, this, index);
}
private long doSet(int index, long val) {
return sql_router_sdkJNI.VectorUint32_doSet(swigCPtr, this, index, val);
}
private void doRemoveRange(int fromIndex, int toIndex) {
sql_router_sdkJNI.VectorUint32_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
}
}