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

com._4paradigm.openmldb.TableColumnDescPairVector 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 TableColumnDescPairVector extends java.util.AbstractList implements java.util.RandomAccess {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

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

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

  public TableColumnDescPairVector(TableColumnDescPair[] initialElements) {
    this();
    reserve(initialElements.length);

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

  public TableColumnDescPairVector(Iterable initialElements) {
    this();
    for (TableColumnDescPair element : initialElements) {
      add(element);
    }
  }

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

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

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

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

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

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

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

  public TableColumnDescPairVector() {
    this(sql_router_sdkJNI.new_TableColumnDescPairVector__SWIG_0(), true);
  }

  public TableColumnDescPairVector(TableColumnDescPairVector other) {
    this(sql_router_sdkJNI.new_TableColumnDescPairVector__SWIG_1(TableColumnDescPairVector.getCPtr(other), other), true);
  }

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

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

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

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

  public TableColumnDescPairVector(int count, TableColumnDescPair value) {
    this(sql_router_sdkJNI.new_TableColumnDescPairVector__SWIG_2(count, TableColumnDescPair.getCPtr(value), value), true);
  }

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

  private void doAdd(TableColumnDescPair x) {
    sql_router_sdkJNI.TableColumnDescPairVector_doAdd__SWIG_0(swigCPtr, this, TableColumnDescPair.getCPtr(x), x);
  }

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

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

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy