org.python.core
public class PyObjectList extends AbstractList implements Cloneable, Serializable
java.util.List
implementation using an underlying PyObject
array for higher performance. Jython should use the following methods
where possible, instead of their List
counterparts:
Constructor Summary | |
---|---|
PyObjectList() | |
PyObjectList(PyObject[] pyObjArr) | |
PyObjectList(Collection c) | |
PyObjectList(int size) |
Method Summary | |
---|---|
void | add(int index, Object element)
For internal jython usage, use PyObjectList. |
boolean | add(Object o)
For internal jython usage, use pyadd. |
boolean | addAll(Collection c) |
boolean | addAll(int index, Collection c) |
Object | clone() |
boolean | equals(Object o) |
Object | get(int index)
Use pyget(int) for internal jython usage. |
int | hashCode() |
void | pyadd(int index, PyObject element) |
boolean | pyadd(PyObject o) |
Object | remove(int index) |
void | remove(int start, int stop) |
Object | set(int index, Object element)
Use pyset(int, PyObject) for internal jython usage. |
int | size() |
pyget(int)
for internal jython usage.pyset(int, PyObject)
for internal jython usage.