org.python.core

Class PySequenceList

public abstract class PySequenceList extends PySequence implements List

Author: updikca1 To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Constructor Summary
PySequenceList()
PySequenceList(PyObject[] elements)
Creates an instance directly backed by the array of PyObject elements.
PySequenceList(PyType type, Collection c)
Method Summary
voidadd(int index, Object element)
booleanadd(Object o)
booleanaddAll(int index, Collection c)
booleanaddAll(Collection c)
voidclear()
booleancontains(Object o)
booleancontainsAll(Collection c)
booleanequals(Object o)
Objectget(int index)
PyObject[]getArray()
Get the backing array.
inthashCode()
intindexOf(Object o)
booleanisEmpty()
Iteratoriterator()
intlastIndexOf(Object o)
ListIteratorlistIterator()
ListIteratorlistIterator(int index)
voidpyadd(int index, PyObject element)
booleanpyadd(PyObject o)
PyObjectpyget(int index)
PyObjectpyset(int index, PyObject element)
Objectremove(int index)
voidremove(int start, int stop)
booleanremove(Object o)
booleanremoveAll(Collection c)
booleanretainAll(Collection c)
Objectset(int index, Object element)
intsize()
ListsubList(int fromIndex, int toIndex)
Object[]toArray()
Object[]toArray(Object[] a)
StringtoString()

Constructor Detail

PySequenceList

public PySequenceList()

PySequenceList

public PySequenceList(PyObject[] elements)
Creates an instance directly backed by the array of PyObject elements.

Parameters: elements

PySequenceList

public PySequenceList(PyType type, Collection c)

Method Detail

add

public void add(int index, Object element)

add

public boolean add(Object o)

addAll

public boolean addAll(int index, Collection c)

addAll

public boolean addAll(Collection c)

clear

public void clear()

contains

public boolean contains(Object o)

containsAll

public boolean containsAll(Collection c)

equals

public boolean equals(Object o)

get

public Object get(int index)

getArray

public PyObject[] getArray()
Get the backing array. The array should not be modified. To get a copy of the array, see toArray.

Returns: backing array object

hashCode

public int hashCode()

indexOf

public int indexOf(Object o)

isEmpty

public boolean isEmpty()

iterator

public Iterator iterator()

lastIndexOf

public int lastIndexOf(Object o)

listIterator

public ListIterator listIterator()

listIterator

public ListIterator listIterator(int index)

pyadd

public void pyadd(int index, PyObject element)

pyadd

public boolean pyadd(PyObject o)

pyget

public PyObject pyget(int index)

pyset

public PyObject pyset(int index, PyObject element)

remove

public Object remove(int index)

remove

public void remove(int start, int stop)

remove

public boolean remove(Object o)

removeAll

public boolean removeAll(Collection c)

retainAll

public boolean retainAll(Collection c)

set

public Object set(int index, Object element)

size

public int size()

subList

public List subList(int fromIndex, int toIndex)

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] a)

toString

public String toString()
Jython homepage