final class TSet[A] extends AnyVal
Transactional set implemented on top of TMap.
- Alphabetic
- By Inheritance
- TSet
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def contains(a: A): USTM[Boolean]
Tests whether or not set contains an element.
- def delete(a: A): USTM[Unit]
Removes element from set.
- def diff(other: TSet[A]): USTM[Unit]
Atomically transforms the set into the difference of itself and the provided set.
- def fold[B](zero: B)(op: (B, A) => B): USTM[B]
Atomically folds using a pure function.
- def foldM[B, E](zero: B)(op: (B, A) => STM[E, B]): STM[E, B]
Atomically folds using a transactional function.
- def foreach[E](f: (A) => STM[E, Unit]): STM[E, Unit]
Atomically performs transactional-effect for each element in set.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def intersect(other: TSet[A]): USTM[Unit]
Atomically transforms the set into the intersection of itself and the provided set.
- def isEmpty: USTM[Boolean]
Tests if the set is empty or not
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def put(a: A): USTM[Unit]
Stores new element in the set.
- def removeIf(p: (A) => Boolean): USTM[Unit]
Removes elements matching predicate.
- def retainIf(p: (A) => Boolean): USTM[Unit]
Retains elements matching predicate.
- def size: USTM[Int]
Returns the set's cardinality.
- def toList: USTM[List[A]]
Collects all elements into a list.
- def toSet: USTM[Set[A]]
Collects all elements into a set.
- def toString(): String
- Definition Classes
- Any
- def transform(f: (A) => A): USTM[Unit]
Atomically updates all elements using a pure function.
- def transformM[E](f: (A) => STM[E, A]): STM[E, Unit]
Atomically updates all elements using a transactional function.
- def union(other: TSet[A]): USTM[Unit]
Atomically transforms the set into the union of itself and the provided set.