org.python.core
Class PyObjectList
AbstractList
org.python.core.PyObjectList
- Cloneable, Serializable
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:
- pyadd(int, PyObject)
- pyadd(PyObject)
- pyset(PyObject)
- pyget()
PyObjectList
public PyObjectList()
PyObjectList
public PyObjectList(Collection c)
PyObjectList
public PyObjectList(int size)
PyObjectList
public PyObjectList(PyObject[] pyObjArr)
add
public boolean add(Object o)
add
public void add(int index,
Object element)
addAll
public boolean addAll(Collection c)
addAll
public boolean addAll(int index,
Collection c)
clone
public Object clone()
equals
public boolean equals(Object o)
get
public Object get(int index)
Use pyget(int)
for internal jython usage.
hashCode
public int hashCode()
pyadd
public void pyadd(int index,
PyObject element)
remove
public Object remove(int index)
remove
public void remove(int start,
int stop)
set
public Object set(int index,
Object element)
Use pyset(int, PyObject)
for internal jython usage.
Jython homepage