| Modifier and Type | Field and Description |
|---|---|
| private final PyObject[] | |
| private volatile List | |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __add__(PyObject
the object to perform this binary operation with (the right-hand operand). generic_other)Overrides org. Equivalent to the standard Python __add__ method. |
| public PyTuple | |
| public PyObject | __iter__()
Overrides org. Return an iterator that is used to iterate the element of this sequence. |
| public int | __len__()
Overrides org. Equivalent to the standard Python __len__ method. |
| public PyObject | __mul__(PyObject
the object to perform this binary operation with (the right-hand operand). o)Overrides org. Equivalent to the standard Python __mul__ method. |
| public PyObject | __rmul__(PyObject
the object to perform this binary operation with (the left-hand operand). o)Overrides org. Equivalent to the standard Python __rmul__ method. |
| public boolean | add(Object
element to be appended to this list o)Implements abstract org. Implements java. Appends the specified element to the end of this list (optional operation). |
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Implements abstract org. Implements java. Inserts the specified element at the specified position in this list (optional operation). |
| public boolean | addAll(Collection<E>
collection containing elements to be added to this list coll)Implements abstract org. Implements java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<E> collection containing elements to be added to this list c)Implements abstract org. Implements java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
| public void | clear()
Implements abstract org. Implements java. Removes all of the elements from this list (optional operation). |
| public boolean | contains(Object
element whose presence in this list is to be tested o)Implements abstract org. Implements java. Returns |
| public boolean | containsAll(Collection<E>
collection to be checked for containment in this list c)Implements abstract org. Implements java. Returns |
| public int | |
| public boolean | equals(Object
the object to be compared for equality with this list other)Implements abstract org. Implements java. Compares the specified object with this list for equality. |
| private static PyTuple | |
| public static PyTuple | Returns: a PyTuple containing each item in the iterablean iterable PyObject iterable)Return a new PyTuple from an iterable. |
| public Object | get(int
index of the element to return index)Implements abstract org. Implements java. Returns the element at the specified position in this list. |
| public PyObject[] | |
| pack-priv List | |
| protected PyObject | getslice(int
the position of the first element. start, int one more than the position of the last element. stop, int the step size. step)Implements abstract org. Returns a range of elements from the sequence. |
| public int | hashCode()
Implements abstract org. Implements java. Returns the hash code value for this list. |
| public int | |
| public int | |
| public int | |
| public int | indexOf(Object
element to search for o)Implements abstract org. Implements java. Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public boolean | isEmpty()
Implements abstract org. Implements java. Returns |
| public Iterator | iterator()
Implements abstract org. Implements java. Returns an iterator over the elements in this list in proper sequence. |
| public int | lastIndexOf(Object
element to search for o)Implements abstract org. Implements java. Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. |
| public ListIterator | listIterator()
Implements abstract org. Implements java. Returns a list iterator over the elements in this list (in proper sequence). |
| public ListIterator | listIterator(final int
index of the first element to be returned from the
list iterator (by a call to index)next)Implements abstract org. Implements java. Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
| public void | |
| public boolean | |
| public PyObject | pyget(int
index of element to return. index)Implements abstract org. Returns the element of the sequence at the given index. |
| public void | pyset(int
index of the element to set. index, PyObject the value to set this element to. value)Implements abstract org. Sets the indexed element of the sequence to the given value. |
| public boolean | refersDirectlyTo(PyObject ob)
Overrides org. Implements org. Optional operation. |
| public boolean | remove(Object
element to be removed from this list, if present o)Implements abstract org. Implements java. Removes the first occurrence of the specified element from this list, if it is present (optional operation). |
| public Object | remove(int
the index of the element to be removed index)Implements abstract org. Implements java. Removes the element at the specified position in this list (optional operation). |
| public void | |
| public boolean | removeAll(Collection<E>
collection containing elements to be removed from this list coll)Implements abstract org. Implements java. Removes from this list all of its elements that are contained in the specified collection (optional operation). |
| protected PyObject | repeat(int
the number of times to repeat the sequence. count)Implements abstract org. Returns a (concrete subclass of) PySequence that repeats the given sequence, as in the
implementation of |
| public boolean | retainAll(Collection<E>
collection containing elements to be retained in this list coll)Implements abstract org. Implements java. Retains only the elements in this list that are contained in the specified collection (optional operation). |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Implements abstract org. Implements java. Replaces the element at the specified position in this list with the specified element (optional operation). |
| public int | size()
Implements abstract org. Implements java. Returns the number of elements in this list. |
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Implements abstract org. Implements java. Returns a view of the portion of this list between the specified
|
| private String | |
| public Object[] | toArray()
Implements abstract org. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
| public Object[] | toArray(Object[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. converted)Implements abstract org. Implements java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
| public String | toString()
Implements abstract org. Returns a string representation of the object. |
| public int | traverse(Visitproc visit, Object arg)
Overrides org. Implements org. Traverses all directly contained |
| pack-priv final PyObject | |
| pack-priv final boolean | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyTuple | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final int | |
| public PyObject | |
| pack-priv final PyObject | |
| pack-priv final int | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final String | |
| pack-priv final PyObject | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv static final PyObject | |
| protected String | unsupportedopMessage(String op, PyObject o2)
Overrides org. Return sequence-specific error messages suitable for substitution. |