Package org.python.core
Class PyObjectList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
org.python.core.PyObjectList
- All Implemented Interfaces:
Serializable,Cloneable,Iterable,Collection,List
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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidFor internal jython usage, usepyadd(int, PyObject).booleanFor internal jython usage, usepyadd(PyObject).booleanaddAll(int index, Collection c) booleanaddAll(Collection c) clone()booleanget(int index) Usepyget(int)for internal jython usage.inthashCode()voidbooleanremove(int index) voidremove(int start, int stop) Usepyset(int, PyObject)for internal jython usage.intsize()Methods inherited from class java.util.AbstractList
clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, subListMethods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
PyObjectList
public PyObjectList() -
PyObjectList
-
PyObjectList
-
PyObjectList
public PyObjectList(int size)
-
-
Method Details
-
add
For internal jython usage, usepyadd(int, PyObject).- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
pyadd
-
add
For internal jython usage, usepyadd(PyObject).- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
pyadd
-
clone
-
equals
- Specified by:
equalsin interfaceCollection- Specified by:
equalsin interfaceList- Overrides:
equalsin classAbstractList
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection- Specified by:
hashCodein interfaceList- Overrides:
hashCodein classAbstractList
-
get
Usepyget(int)for internal jython usage.- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
remove
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
remove
public void remove(int start, int stop) -
set
Usepyset(int, PyObject)for internal jython usage.- Specified by:
setin interfaceList- Overrides:
setin classAbstractList
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractCollection
-
addAll
- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractList
-