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
- final def contains(a: A): STM[Nothing, Boolean]
Tests whether or not set contains an element.
- final def delete(a: A): STM[Nothing, Unit]
Removes element from set.
- final def diff(other: TSet[A]): STM[Nothing, Unit]
Atomically transforms the set into the difference of itself and the provided set.
- final def fold[B](zero: B)(op: (B, A) => B): STM[Nothing, B]
Atomically folds using pure function.
- final def foldM[B, E](zero: B)(op: (B, A) => STM[E, B]): STM[E, B]
Atomically folds using effectful function.
- final def foreach[E](f: (A) => STM[E, Unit]): STM[E, Unit]
Atomically performs side-effect for each element in set.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def intersect(other: TSet[A]): STM[Nothing, Unit]
Atomically transforms the set into the intersection of itself and the provided set.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def put(a: A): STM[Nothing, Unit]
Stores new element in the set.
- final def removeIf(p: (A) => Boolean): STM[Nothing, Unit]
Removes elements matching predicate.
- final def retainIf(p: (A) => Boolean): STM[Nothing, Unit]
Retains elements matching predicate.
- final def size: STM[Nothing, Int]
Returns the set's cardinality.
- final def toList: STM[Nothing, List[A]]
Collects all elements into a list.
- def toString(): String
- Definition Classes
- Any
- final def transform(f: (A) => A): STM[Nothing, Unit]
Atomically updates all elements using pure function.
- final def transformM[E](f: (A) => STM[E, A]): STM[E, Unit]
Atomically updates all elements using effectful function.
- final def union(other: TSet[A]): STM[Nothing, Unit]
Atomically transforms the set into the union of itself and the provided set.