TransactionalSet¶
- class TransactionalSet(name, transaction, context)[source]¶
Bases:
TransactionalProxy
,Generic
[ItemType
]Transactional implementation of
Set
.- add(item: ItemType) bool [source]¶
Transactional implementation of
Set.add(item)
- Parameters:
item – The new item to be added.
- Returns:
True
if item is added successfully,False
otherwise.
- remove(item: ItemType) bool [source]¶
Transactional implementation of
Set.remove(item)
- Parameters:
item – The specified item to be deleted.
- Returns:
True
if item is remove successfully,False
otherwise.
- size() int [source]¶
Transactional implementation of
Set.size()
- Returns:
Size of the set.