
third_party.org.chokkan.crfsuite.StringList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcrfsuite Show documentation
Show all versions of jcrfsuite Show documentation
Jcrfsuite is a Java interface for crfsuite, a fast implementation of Conditional Random Fields,
using SWIG and class injection technique
/* ----------------------------------------------------------------------------
* 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 third_party.org.chokkan.crfsuite;
public class StringList {
private long swigCPtr;
protected boolean swigCMemOwn;
public StringList(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public static long getCPtr(StringList obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
crfsuiteJNI.delete_StringList(swigCPtr);
}
swigCPtr = 0;
}
}
public StringList() {
this(crfsuiteJNI.new_StringList__SWIG_0(), true);
}
public StringList(long n) {
this(crfsuiteJNI.new_StringList__SWIG_1(n), true);
}
public long size() {
return crfsuiteJNI.StringList_size(swigCPtr, this);
}
public long capacity() {
return crfsuiteJNI.StringList_capacity(swigCPtr, this);
}
public void reserve(long n) {
crfsuiteJNI.StringList_reserve(swigCPtr, this, n);
}
public boolean isEmpty() {
return crfsuiteJNI.StringList_isEmpty(swigCPtr, this);
}
public void clear() {
crfsuiteJNI.StringList_clear(swigCPtr, this);
}
public void add(String x) {
crfsuiteJNI.StringList_add(swigCPtr, this, x);
}
public String get(int i) {
return crfsuiteJNI.StringList_get(swigCPtr, this, i);
}
public void set(int i, String val) {
crfsuiteJNI.StringList_set(swigCPtr, this, i, val);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy