Class PythonLikeTuple<T extends PythonLikeObject>
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.collections.PythonLikeTuple<T>
- All Implemented Interfaces:
PythonLikeObject,PythonLikeComparable<PythonLikeTuple>,PlanningCloneable<PythonLikeTuple<T>>,PlanningImmutable,Comparable<PythonLikeTuple>,Iterable<T>,Collection<T>,List<T>,RandomAccess
public class PythonLikeTuple<T extends PythonLikeObject>
extends AbstractPythonLikeObject
implements List<T>, PlanningCloneable<PythonLikeTuple<T>>, PythonLikeComparable<PythonLikeTuple>, PlanningImmutable, RandomAccess
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int i, PythonLikeObject pythonLikeObject) booleanadd(PythonLikeObject pythonLikeObject) booleanaddAll(int i, Collection<? extends T> collection) booleanaddAll(Collection<? extends T> collection) voidclear()intcompareTo(PythonLikeTuple other) concatToNew(PythonLikeTuple other) booleanbooleancontainsAll(Collection<?> collection) containsItem(PythonLikeObject item) count(PythonLikeObject search) booleanstatic <T extends PythonLikeObject>
PythonLikeTuple<T>fromItems(T... items) static <T extends PythonLikeObject>
PythonLikeTuple<T>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) intbooleanisEmpty()iterator()intlistIterator(int i) multiplyToNew(PythonInteger times) remove(int i) booleanbooleanremoveAll(Collection<?> collection) booleanretainAll(Collection<?> collection) voidreverseAdd(PythonLikeObject object) intsize()subList(int i, int i1) Object[]toArray()<T> T[]toArray(T[] ts) 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.types.PythonLikeComparable
greaterThan, greaterThanOrEqual, lessThan, lessThanOrEqualMethods inherited from interface ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__ne__, $method$__repr__, $method$__setattr__
-
Field Details
-
EMPTY
-
-
Constructor Details
-
PythonLikeTuple
public PythonLikeTuple() -
PythonLikeTuple
public PythonLikeTuple(int size)
-
-
Method Details
-
createNewInstance
- Specified by:
createNewInstancein interfacePlanningCloneable<T extends PythonLikeObject>
-
fromItems
-
fromList
-
concatToNew
-
multiplyToNew
-
getLength
-
containsItem
-
getIterator
-
getReversedIterator
-
getItem
-
getSlice
-
count
-
index
-
index
-
index
-
reverseAdd
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends PythonLikeObject>- Specified by:
sizein interfaceList<T extends PythonLikeObject>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends PythonLikeObject>- Specified by:
isEmptyin interfaceList<T extends PythonLikeObject>
-
contains
- Specified by:
containsin interfaceCollection<T extends PythonLikeObject>- Specified by:
containsin interfaceList<T extends PythonLikeObject>
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends PythonLikeObject>- Specified by:
iteratorin interfaceIterable<T extends PythonLikeObject>- Specified by:
iteratorin interfaceList<T extends PythonLikeObject>
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends PythonLikeObject>- Specified by:
toArrayin interfaceList<T extends PythonLikeObject>
-
toArray
public <T> T[] toArray(T[] ts) - Specified by:
toArrayin interfaceCollection<T extends PythonLikeObject>- Specified by:
toArrayin interfaceList<T extends PythonLikeObject>
-
add
- Specified by:
addin interfaceCollection<T extends PythonLikeObject>- Specified by:
addin interfaceList<T extends PythonLikeObject>
-
remove
- Specified by:
removein interfaceCollection<T extends PythonLikeObject>- Specified by:
removein interfaceList<T extends PythonLikeObject>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
containsAllin interfaceList<T extends PythonLikeObject>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
addAllin interfaceList<T extends PythonLikeObject>
-
addAll
- Specified by:
addAllin interfaceList<T extends PythonLikeObject>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
removeAllin interfaceList<T extends PythonLikeObject>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
retainAllin interfaceList<T extends PythonLikeObject>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends PythonLikeObject>- Specified by:
clearin interfaceList<T extends PythonLikeObject>
-
get
- Specified by:
getin interfaceList<T extends PythonLikeObject>
-
set
- Specified by:
setin interfaceList<T extends PythonLikeObject>
-
add
- Specified by:
addin interfaceList<T extends PythonLikeObject>
-
remove
- Specified by:
removein interfaceList<T extends PythonLikeObject>
-
indexOf
- Specified by:
indexOfin interfaceList<T extends PythonLikeObject>
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T extends PythonLikeObject>
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends PythonLikeObject>
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends PythonLikeObject>
-
subList
- Specified by:
subListin interfaceList<T extends PythonLikeObject>
-
equals
- Specified by:
equalsin interfaceCollection<T extends PythonLikeObject>- Specified by:
equalsin interfaceList<T extends PythonLikeObject>- Overrides:
equalsin classObject
-
compareTo
- Specified by:
compareToin interfaceComparable<T extends PythonLikeObject>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T extends PythonLikeObject>- Specified by:
hashCodein interfaceList<T extends PythonLikeObject>- Overrides:
hashCodein classObject
-
$method$__hash__
- Specified by:
$method$__hash__in interfacePythonLikeObject
-
$method$__str__
- Specified by:
$method$__str__in interfacePythonLikeObject
-
toString
- Overrides:
toStringin classAbstractPythonLikeObject
-