Class PythonLikeList<T>
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.collections.PythonLikeList<T>
- All Implemented Interfaces:
PythonLikeObject,PlanningCloneable<PythonLikeList<T>>,Iterable<T>,Collection<T>,List<T>,RandomAccess
public class PythonLikeList<T>
extends AbstractPythonLikeObject
implements List<T>, PlanningCloneable<PythonLikeList<T>>, RandomAccess
-
Field Summary
Fields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int i, Collection collection) booleanaddAll(Collection collection) append(PythonLikeObject item) voidclear()concatToNew(PythonLikeList other) concatToSelf(PythonLikeList other) booleanbooleancontainsAll(Collection collection) containsItem(PythonLikeObject item) copy()count(PythonLikeObject search) deleteItem(PythonInteger index) deleteSlice(PythonSlice slice) booleanextend(PythonLikeObject item) get(int i) getItem(PythonInteger index) getSlice(PythonSlice slice) inthashCode()index(PythonLikeObject item) index(PythonLikeObject item, PythonInteger start) index(PythonLikeObject item, PythonInteger start, PythonInteger end) intinsert(PythonInteger index, PythonLikeObject item) booleanisEmpty()iterator()intlength()listIterator(int i) multiplyToNew(PythonInteger times) multiplyToSelf(PythonInteger times) pop()pop(PythonInteger index) remove(int i) remove(PythonLikeObject item) booleanbooleanremoveAll(Collection collection) booleanretainAll(Collection collection) reverse()voidreverseAdd(PythonLikeObject object) setItem(PythonInteger index, PythonLikeObject value) setSlice(PythonSlice slice, PythonLikeObject iterable) intsize()sort()subList(int i, int i1) Object[]toArray()Object[]toString()Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttributeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, sort, spliteratorMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__
-
Constructor Details
-
PythonLikeList
public PythonLikeList() -
PythonLikeList
public PythonLikeList(int size) -
PythonLikeList
-
-
Method Details
-
createNewInstance
- Specified by:
createNewInstancein interfacePlanningCloneable<T>
-
reverseAdd
-
getIterator
-
copy
-
concatToNew
-
concatToSelf
-
multiplyToNew
-
multiplyToSelf
-
length
-
index
-
index
-
index
-
getItem
-
getSlice
-
setItem
-
setSlice
-
deleteItem
-
deleteSlice
-
remove
-
insert
-
pop
-
pop
-
containsItem
-
count
-
append
-
extend
-
reverse
-
sort
-
clearList
-
getRepresentation
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
-
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
- Specified by:
listIteratorin interfaceList<T>
-
subList
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject
-
toString
- Overrides:
toStringin classAbstractPythonLikeObject
-
equals
-
hashCode
public int hashCode() -
getDelegate
-