org.python.core
public abstract class PySequenceList extends PySequence implements List
Constructor Summary | |
---|---|
PySequenceList() | |
PySequenceList(PyObject[] elements)
Creates an instance directly backed by the array of PyObject elements. | |
PySequenceList(PyType type, Collection c) |
Method Summary | |
---|---|
void | add(int index, Object element) |
boolean | add(Object o) |
boolean | addAll(int index, Collection c) |
boolean | addAll(Collection c) |
void | clear() |
boolean | contains(Object o) |
boolean | containsAll(Collection c) |
boolean | equals(Object o) |
Object | get(int index) |
PyObject[] | getArray()
Get the backing array. |
int | hashCode() |
int | indexOf(Object o) |
boolean | isEmpty() |
Iterator | iterator() |
int | lastIndexOf(Object o) |
ListIterator | listIterator() |
ListIterator | listIterator(int index) |
void | pyadd(int index, PyObject element) |
boolean | pyadd(PyObject o) |
PyObject | pyget(int index) |
PyObject | pyset(int index, PyObject element) |
Object | remove(int index) |
void | remove(int start, int stop) |
boolean | remove(Object o) |
boolean | removeAll(Collection c) |
boolean | retainAll(Collection c) |
Object | set(int index, Object element) |
int | size() |
List | subList(int fromIndex, int toIndex) |
Object[] | toArray() |
Object[] | toArray(Object[] a) |
String | toString() |
Parameters: elements
Returns: backing array object