public class KnowledgeList extends java.util.AbstractList<KnowledgeRecord>
Constructor and Description |
---|
KnowledgeList() |
KnowledgeList(KnowledgeRecord[] records) |
KnowledgeList(long[] records) |
Modifier and Type | Method and Description |
---|---|
void |
free()
Deletes the C instantiation.
|
KnowledgeRecord |
get(int index) |
int |
size() |
long[] |
toPointerArray()
Returns the underlying C++ pointer array (useful for JNI)
|
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public KnowledgeList()
public KnowledgeList(long[] records)
public KnowledgeList(KnowledgeRecord[] records)
public KnowledgeRecord get(int index)
get
in interface java.util.List<KnowledgeRecord>
get
in class java.util.AbstractList<KnowledgeRecord>
(int)
public int size()
size
in interface java.util.Collection<KnowledgeRecord>
size
in interface java.util.List<KnowledgeRecord>
size
in class java.util.AbstractCollection<KnowledgeRecord>
()
public long[] toPointerArray()
public void free()
KnowledgeList
gets garbage collected