All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com._4paradigm.openmldb.DBTableColumnDescPairVector Maven / Gradle / Ivy

There is a newer version: 0.9.2-macos
Show newest version
/* ----------------------------------------------------------------------------
 * 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 DBTableColumnDescPairVector extends java.util.AbstractList implements java.util.RandomAccess {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected DBTableColumnDescPairVector(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(DBTableColumnDescPairVector 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_DBTableColumnDescPairVector(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public DBTableColumnDescPairVector(DBTableColumnDescPair[] initialElements) {
    this();
    reserve(initialElements.length);

    for (DBTableColumnDescPair element : initialElements) {
      add(element);
    }
  }

  public DBTableColumnDescPairVector(Iterable initialElements) {
    this();
    for (DBTableColumnDescPair element : initialElements) {
      add(element);
    }
  }

  public DBTableColumnDescPair get(int index) {
    return doGet(index);
  }

  public DBTableColumnDescPair set(int index, DBTableColumnDescPair e) {
    return doSet(index, e);
  }

  public boolean add(DBTableColumnDescPair e) {
    modCount++;
    doAdd(e);
    return true;
  }

  public void add(int index, DBTableColumnDescPair e) {
    modCount++;
    doAdd(index, e);
  }

  public DBTableColumnDescPair remove(int index) {
    modCount++;
    return doRemove(index);
  }

  protected void removeRange(int fromIndex, int toIndex) {
    modCount++;
    doRemoveRange(fromIndex, toIndex);
  }

  public int size() {
    return doSize();
  }

  public DBTableColumnDescPairVector() {
    this(sql_router_sdkJNI.new_DBTableColumnDescPairVector__SWIG_0(), true);
  }

  public DBTableColumnDescPairVector(DBTableColumnDescPairVector other) {
    this(sql_router_sdkJNI.new_DBTableColumnDescPairVector__SWIG_1(DBTableColumnDescPairVector.getCPtr(other), other), true);
  }

  public long capacity() {
    return sql_router_sdkJNI.DBTableColumnDescPairVector_capacity(swigCPtr, this);
  }

  public void reserve(long n) {
    sql_router_sdkJNI.DBTableColumnDescPairVector_reserve(swigCPtr, this, n);
  }

  public boolean isEmpty() {
    return sql_router_sdkJNI.DBTableColumnDescPairVector_isEmpty(swigCPtr, this);
  }

  public void clear() {
    sql_router_sdkJNI.DBTableColumnDescPairVector_clear(swigCPtr, this);
  }

  public DBTableColumnDescPairVector(int count, DBTableColumnDescPair value) {
    this(sql_router_sdkJNI.new_DBTableColumnDescPairVector__SWIG_2(count, DBTableColumnDescPair.getCPtr(value), value), true);
  }

  private int doSize() {
    return sql_router_sdkJNI.DBTableColumnDescPairVector_doSize(swigCPtr, this);
  }

  private void doAdd(DBTableColumnDescPair x) {
    sql_router_sdkJNI.DBTableColumnDescPairVector_doAdd__SWIG_0(swigCPtr, this, DBTableColumnDescPair.getCPtr(x), x);
  }

  private void doAdd(int index, DBTableColumnDescPair x) {
    sql_router_sdkJNI.DBTableColumnDescPairVector_doAdd__SWIG_1(swigCPtr, this, index, DBTableColumnDescPair.getCPtr(x), x);
  }

  private DBTableColumnDescPair doRemove(int index) {
    return new DBTableColumnDescPair(sql_router_sdkJNI.DBTableColumnDescPairVector_doRemove(swigCPtr, this, index), true);
  }

  private DBTableColumnDescPair doGet(int index) {
    return new DBTableColumnDescPair(sql_router_sdkJNI.DBTableColumnDescPairVector_doGet(swigCPtr, this, index), false);
  }

  private DBTableColumnDescPair doSet(int index, DBTableColumnDescPair val) {
    return new DBTableColumnDescPair(sql_router_sdkJNI.DBTableColumnDescPairVector_doSet(swigCPtr, this, index, DBTableColumnDescPair.getCPtr(val), val), true);
  }

  private void doRemoveRange(int fromIndex, int toIndex) {
    sql_router_sdkJNI.DBTableColumnDescPairVector_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy