| java.util.AbstractList org.python.core.PyObjectList
PyObjectList | public class PyObjectList extends AbstractList implements Cloneable,Serializable(Code) | | 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()
author: Clark Updike |
Field Summary | |
protected PyObjectArray | array Provides mutable operations on a PyObject[] array, including features
that help with implementing java.util.List. |
Method Summary | |
public void | add(int index, Object element) For internal jython usage, use
PyObjectList.pyadd(int,PyObject) . | public boolean | add(Object o) For internal jython usage, use
PyObjectList.pyadd(PyObject) . | public boolean | addAll(Collection c) | public boolean | addAll(int index, Collection c) | public Object | clone() | void | ensureCapacity(int minCapacity) | public boolean | equals(Object o) | public Object | get(int index) Use pyget(int) for internal jython usage. | protected PyObject[] | getArray() Get the backing array. | public int | hashCode() | public void | pyadd(int index, PyObject element) | public boolean | pyadd(PyObject o) | PyObject | pyget(int index) | PyObject | pyset(int index, PyObject element) | public Object | remove(int index) | public void | remove(int start, int stop) | void | replaceSubArray(int destStart, int destStop, Object srcArray, int srcStart, int srcStop) | public Object | set(int index, Object element) Use pyset(int, PyObject) for internal jython usage. | void | setSize(int count) | public int | size() |
array | protected PyObjectArray array(Code) | | Provides mutable operations on a PyObject[] array, including features
that help with implementing java.util.List.
|
PyObjectList | public PyObjectList()(Code) | | |
PyObjectList | public PyObjectList(int size)(Code) | | |
ensureCapacity | void ensureCapacity(int minCapacity)(Code) | | |
get | public Object get(int index)(Code) | | Use pyget(int) for internal jython usage.
|
getArray | protected PyObject[] getArray()(Code) | | Get the backing array. The array should generally not be modified.
To get a copy of the array, see
PyObjectList.toArray() which returns a copy.
backing array object |
hashCode | public int hashCode()(Code) | | |
remove | public void remove(int start, int stop)(Code) | | |
replaceSubArray | void replaceSubArray(int destStart, int destStop, Object srcArray, int srcStart, int srcStop)(Code) | | |
set | public Object set(int index, Object element)(Code) | | Use pyset(int, PyObject) for internal jython usage.
|
setSize | void setSize(int count)(Code) | | |
Fields inherited from java.util.AbstractList | protected transient int modCount(Code)(Java Doc)
|
|
|