/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.7
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.revolsys.gis.esri.gdb.file.capi.swig;
public class VectorOfWString {
protected static long getCPtr(final VectorOfWString obj) {
return obj == null ? 0 : obj.swigCPtr;
}
private transient long swigCPtr;
protected transient boolean swigCMemOwn;
public VectorOfWString() {
this(EsriFileGdbJNI.new_VectorOfWString__SWIG_0(), true);
}
public VectorOfWString(final long n) {
this(EsriFileGdbJNI.new_VectorOfWString__SWIG_1(n), true);
}
protected VectorOfWString(final long cPtr, final boolean cMemoryOwn) {
this.swigCMemOwn = cMemoryOwn;
this.swigCPtr = cPtr;
}
public void add(final String x) {
EsriFileGdbJNI.VectorOfWString_add(this.swigCPtr, this, x);
}
public long capacity() {
return EsriFileGdbJNI.VectorOfWString_capacity(this.swigCPtr, this);
}
public void clear() {
EsriFileGdbJNI.VectorOfWString_clear(this.swigCPtr, this);
}
public synchronized void delete() {
if (this.swigCPtr != 0) {
if (this.swigCMemOwn) {
this.swigCMemOwn = false;
EsriFileGdbJNI.delete_VectorOfWString(this.swigCPtr);
}
this.swigCPtr = 0;
}
}
@Override
protected void finalize() {
delete();
}
public String get(final int i) {
return EsriFileGdbJNI.VectorOfWString_get(this.swigCPtr, this, i);
}
public boolean isEmpty() {
return EsriFileGdbJNI.VectorOfWString_isEmpty(this.swigCPtr, this);
}
public void reserve(final long n) {
EsriFileGdbJNI.VectorOfWString_reserve(this.swigCPtr, this, n);
}
public void set(final int i, final String val) {
EsriFileGdbJNI.VectorOfWString_set(this.swigCPtr, this, i, val);
}
public long size() {
return EsriFileGdbJNI.VectorOfWString_size(this.swigCPtr, this);
}
}