Class PythonLikeSet<T extends PythonLikeObject>
java.lang.Object
ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
ai.timefold.jpyinterpreter.types.collections.PythonLikeSet<T>
- All Implemented Interfaces:
PythonLikeObject,PlanningCloneable<PythonLikeSet<T>>,Iterable<T>,Collection<T>,Set<T>
public class PythonLikeSet<T extends PythonLikeObject>
extends AbstractPythonLikeObject
implements Set<T>, PlanningCloneable<PythonLikeSet<T>>
-
Field Summary
FieldsFields inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
OBJECT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(PythonLikeObject pythonLikeObject) booleanaddAll(Collection<? extends T> collection) addItem(PythonLikeObject pythonLikeObject) voidclear()clearSet()booleanbooleancontainsAll(Collection<?> collection) containsItem(PythonLikeObject query) copy()difference(PythonLikeFrozenSet other) difference(PythonLikeSet other) differenceUpdate(PythonLikeObject collection) differenceUpdateWithResult(PythonLikeObject collection) discard(PythonLikeObject object) booleaninthashCode()intersection(PythonLikeFrozenSet other) intersection(PythonLikeSet<T> other) intersectionUpdate(PythonLikeObject collection) intersectionUpdateWithResult(PythonLikeObject collection) isDisjoint(PythonLikeFrozenSet other) isDisjoint(PythonLikeSet other) booleanisEmpty()isStrictSubset(PythonLikeSet other) isStrictSuperset(PythonLikeSet other) isSubset(PythonLikeFrozenSet other) isSubset(PythonLikeSet other) isSuperset(PythonLikeFrozenSet other) isSuperset(PythonLikeSet other) iterator()pop()booleanbooleanremoveAll(Collection<?> collection) removeOrError(PythonLikeObject object) booleanretainAll(Collection<?> collection) voidreverseAdd(T item) intsize()symmetricDifference(PythonLikeSet other) symmetricDifferenceUpdate(PythonLikeObject collection) symmetricDifferenceUpdateWithResult(PythonLikeObject collection) Object[]toArray()<T> T[]toArray(T[] ts) union(PythonLikeFrozenSet other) union(PythonLikeSet<T> other) update(PythonLikeObject collection) updateWithResult(PythonLikeObject collection) Methods inherited from class ai.timefold.jpyinterpreter.types.AbstractPythonLikeObject
$deleteAttribute, $getAttributeOrNull, $getType, $setAttribute, getExtraAttributeMap, setAttribute, toStringMethods 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 ai.timefold.jpyinterpreter.PythonLikeObject
$getAttributeOrError, $getGenericType, $method$__delattr__, $method$__eq__, $method$__format__, $method$__format__, $method$__getattribute__, $method$__hash__, $method$__ne__, $method$__repr__, $method$__setattr__, $method$__str__Methods inherited from interface java.util.Set
spliterator
-
Field Details
-
delegate
-
-
Constructor Details
-
PythonLikeSet
public PythonLikeSet() -
PythonLikeSet
public PythonLikeSet(int size)
-
-
Method Details
-
createNewInstance
- Specified by:
createNewInstancein interfacePlanningCloneable<T extends PythonLikeObject>
-
reverseAdd
-
isDisjoint
-
isDisjoint
-
isSubset
-
isSubset
-
isStrictSubset
-
isStrictSubset
-
isSuperset
-
isSuperset
-
isStrictSuperset
-
isStrictSuperset
-
union
-
union
-
intersection
-
intersection
-
difference
-
difference
-
symmetricDifference
-
symmetricDifference
-
updateWithResult
-
update
-
intersectionUpdateWithResult
-
intersectionUpdate
-
differenceUpdateWithResult
-
differenceUpdate
-
symmetricDifferenceUpdateWithResult
-
symmetricDifferenceUpdate
-
addItem
-
discard
-
removeOrError
-
pop
-
copy
-
clearSet
-
getLength
-
containsItem
-
size
public int size()- Specified by:
sizein interfaceCollection<T extends PythonLikeObject>- Specified by:
sizein interfaceSet<T extends PythonLikeObject>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T extends PythonLikeObject>- Specified by:
isEmptyin interfaceSet<T extends PythonLikeObject>
-
contains
- Specified by:
containsin interfaceCollection<T extends PythonLikeObject>- Specified by:
containsin interfaceSet<T extends PythonLikeObject>
-
iterator
- Specified by:
iteratorin interfaceCollection<T extends PythonLikeObject>- Specified by:
iteratorin interfaceIterable<T extends PythonLikeObject>- Specified by:
iteratorin interfaceSet<T extends PythonLikeObject>
-
getIterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T extends PythonLikeObject>- Specified by:
toArrayin interfaceSet<T extends PythonLikeObject>
-
toArray
public <T> T[] toArray(T[] ts) - Specified by:
toArrayin interfaceCollection<T extends PythonLikeObject>- Specified by:
toArrayin interfaceSet<T extends PythonLikeObject>
-
add
- Specified by:
addin interfaceCollection<T extends PythonLikeObject>- Specified by:
addin interfaceSet<T extends PythonLikeObject>
-
remove
- Specified by:
removein interfaceCollection<T extends PythonLikeObject>- Specified by:
removein interfaceSet<T extends PythonLikeObject>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
containsAllin interfaceSet<T extends PythonLikeObject>
-
addAll
- Specified by:
addAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
addAllin interfaceSet<T extends PythonLikeObject>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
removeAllin interfaceSet<T extends PythonLikeObject>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T extends PythonLikeObject>- Specified by:
retainAllin interfaceSet<T extends PythonLikeObject>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T extends PythonLikeObject>- Specified by:
clearin interfaceSet<T extends PythonLikeObject>
-
equals
- Specified by:
equalsin interfaceCollection<T extends PythonLikeObject>- Specified by:
equalsin interfaceSet<T extends PythonLikeObject>- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<T extends PythonLikeObject>- Specified by:
hashCodein interfaceSet<T extends PythonLikeObject>- Overrides:
hashCodein classObject
-