View

trait View[A] extends Set[A] with SetOps[A, View, View[A]] with IterableFactoryDefaults[A, View] with TxnDebuggable

A Set that provides atomic execution of all of its methods.

A Set that provides atomic execution of all of its methods.

Companion
object
trait Set[A]
trait SetOps[A, View, View[A]]
trait Shrinkable[A]
trait Builder[A, View[A]]
trait Growable[A]
trait Clearable
trait Cloneable[View[A]]
trait Cloneable
trait Set[A]
trait Equals
trait SetOps[A, View, View[A]]
trait A => Boolean
trait Iterable[A]
trait Iterable[A]
trait IterableFactoryDefaults[A, View]
trait IterableOps[A, View, View[A]]
trait IterableOnceOps[A, View, View[A]]
trait IterableOnce[A]
class Object
trait Matchable
class Any

Value members

Abstract methods

def clone: View[A]
def snapshot: Set[A]

Takes an atomic snapshot of this transactional set.

Takes an atomic snapshot of this transactional set.

def tset: TSet[A]

Returns the TSet perspective on this transactional set, which provides set functionality only inside atomic blocks.

Returns the TSet perspective on this transactional set, which provides set functionality only inside atomic blocks.

Concrete methods

override def className: String
Definition Classes
Iterable
override def empty: View[A]
Definition Classes
IterableFactoryDefaults -> IterableOps
override def iterableFactory: IterableFactory[View]
Definition Classes
Set -> Set -> Iterable -> Iterable -> IterableOps

Inherited methods

@inline
final def &(that: Set[A]): View[A]
Inherited from
SetOps
@inline
final def &~(that: Set[A]): View[A]
Inherited from
SetOps
@inline
final def ++[B >: A](suffix: IterableOnce[B]): View[B]
Inherited from
IterableOps
@inline
final def ++(that: IterableOnce[A]): View[A]
Inherited from
SetOps
@inline
final def ++=(xs: IterableOnce[A]): View[A]
Inherited from
Growable
@inline
final def +=(elem: A): View[A]
Inherited from
Growable
@inline
final def --=(xs: IterableOnce[A]): View[A]
Inherited from
Shrinkable
@inline
final def -=(elem: A): View[A]
Inherited from
Shrinkable
Inherited from
Cloneable
def add(elem: A): Boolean
Inherited from
SetOps
def addAll(xs: IterableOnce[A]): View[A]
Inherited from
Growable
def addOne(elem: A): View[A]
Inherited from
Growable
@inline
final def addString(b: StringBuilder): StringBuilder
Inherited from
IterableOnceOps
@inline
final def addString(b: StringBuilder, sep: String): StringBuilder
Inherited from
IterableOnceOps
def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
Inherited from
IterableOnceOps
@unspecialized
def andThen[A](g: Boolean => A): A => A
Inherited from
Function1
@inline
final def apply(elem: A): Boolean
Inherited from
SetOps
def canEqual(that: Any): Boolean
Inherited from
Set
def clear(): Unit
Inherited from
Builder
def collect[B](pf: PartialFunction[A, B]): View[B]
Inherited from
IterableOps
def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
Inherited from
IterableOnceOps
@unspecialized
def compose[A](g: A => A): A => Boolean
Inherited from
Function1
def concat[B >: A](suffix: IterableOnce[B]): View[B]
Inherited from
IterableOps
def concat(that: IterableOnce[A]): View[A]
Inherited from
SetOps
def contains(elem: A): Boolean
Inherited from
SetOps
def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: A](xs: Array[B], start: Int): Int
Inherited from
IterableOnceOps
@deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
def copyToArray[B >: A](xs: Array[B]): Int
Inherited from
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
Inherited from
IterableOnceOps
def count(p: A => Boolean): Int
Inherited from
IterableOnceOps
def dbgStr: String

Returns a string representation of the transactional value in this instance for debugging convenience. The Ref reads (and writes) performed while constructing the result will be discarded before returning. This method works fine outside a transaction.

Returns a string representation of the transactional value in this instance for debugging convenience. The Ref reads (and writes) performed while constructing the result will be discarded before returning. This method works fine outside a transaction.

If this method is called from within a transaction that is already doomed (status Txn.Rolledback), a string describing the reason for the outer transaction's rollback will be returned.

Inherited from
TxnDebuggable
def dbgValue: Any

Returns some value that is suitable for examination in a debugger, or returns a Txn.RollbackCause if called from inside a doomed atomic block.

Returns some value that is suitable for examination in a debugger, or returns a Txn.RollbackCause if called from inside a doomed atomic block.

Inherited from
TxnDebuggable
def diff(that: Set[A]): View[A]
Inherited from
SetOps
def drop(n: Int): View[A]
Inherited from
IterableOps
def dropRight(n: Int): View[A]
Inherited from
IterableOps
def dropWhile(p: A => Boolean): View[A]
Inherited from
IterableOps
override def equals(that: Any): Boolean
Definition Classes
Set -> Equals -> Any
Inherited from
Set
def exists(p: A => Boolean): Boolean
Inherited from
IterableOnceOps
def filter(pred: A => Boolean): View[A]
Inherited from
IterableOps
def filterInPlace(p: A => Boolean): View[A]
Inherited from
SetOps
def filterNot(pred: A => Boolean): View[A]
Inherited from
IterableOps
def find(p: A => Boolean): Option[A]
Inherited from
IterableOnceOps
def flatMap[B](f: A => IterableOnce[B]): View[B]
Inherited from
IterableOps
def flatten[B](asIterable: A => IterableOnce[B]): View[B]
Inherited from
IterableOps
def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
Inherited from
IterableOnceOps
def foldLeft[B](z: B)(op: (B, A) => B): B
Inherited from
IterableOnceOps
def foldRight[B](z: B)(op: (A, B) => B): B
Inherited from
IterableOnceOps
def forall(p: A => Boolean): Boolean
Inherited from
IterableOnceOps
def foreach[U](f: A => U): Unit
Inherited from
IterableOnceOps
protected def fromSpecific(coll: IterableOnce[A]): View[A]
Inherited from
IterableFactoryDefaults
def groupBy[K](f: A => K): Map[K, View[A]]
Inherited from
IterableOps
def groupMap[K, B](key: A => K)(f: A => B): Map[K, View[B]]
Inherited from
IterableOps
def groupMapReduce[K, B](key: A => K)(f: A => B)(reduce: (B, B) => B): Map[K, B]
Inherited from
IterableOps
def grouped(size: Int): Iterator[View[A]]
Inherited from
IterableOps
override def hashCode(): Int
Definition Classes
Set -> Any
Inherited from
Set
def head: A
Inherited from
IterableOps
def headOption: Option[A]
Inherited from
IterableOps
def init: View[A]
Inherited from
IterableOps
def inits: Iterator[View[A]]
Inherited from
IterableOps
def intersect(that: Set[A]): View[A]
Inherited from
SetOps
def isEmpty: Boolean
Inherited from
IterableOnceOps
override def isTraversableAgain: Boolean
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def iterator: Iterator[A]
Inherited from
IterableOnce
override def knownSize: Int
Definition Classes
SetOps -> Growable -> IterableOnce
Inherited from
SetOps
def last: A
Inherited from
IterableOps
def lastOption: Option[A]
Inherited from
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, View[A]]
Inherited from
Iterable
def map[B](f: A => B): View[B]
Inherited from
IterableOps
def mapResult[NewTo](f: View[A] => NewTo): Builder[A, NewTo]
Inherited from
Builder
def max[B >: A](ord: Ordering[B]): A
Inherited from
IterableOnceOps
def maxBy[B](f: A => B)(cmp: Ordering[B]): A
Inherited from
IterableOnceOps
def maxByOption[B](f: A => B)(cmp: Ordering[B]): Option[A]
Inherited from
IterableOnceOps
def maxOption[B >: A](ord: Ordering[B]): Option[A]
Inherited from
IterableOnceOps
def min[B >: A](ord: Ordering[B]): A
Inherited from
IterableOnceOps
def minBy[B](f: A => B)(cmp: Ordering[B]): A
Inherited from
IterableOnceOps
def minByOption[B](f: A => B)(cmp: Ordering[B]): Option[A]
Inherited from
IterableOnceOps
def minOption[B >: A](ord: Ordering[B]): Option[A]
Inherited from
IterableOnceOps
@inline
final def mkString: String
Inherited from
IterableOnceOps
@inline
final def mkString(sep: String): String
Inherited from
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String
Inherited from
IterableOnceOps
protected def newSpecificBuilder: Builder[A, View[A]]
Inherited from
IterableFactoryDefaults
@deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
def nonEmpty: Boolean
Inherited from
IterableOnceOps
def partition(p: A => Boolean): (View[A], View[A])
Inherited from
IterableOps
def partitionMap[A1, A2](f: A => Either[A1, A2]): (View[A1], View[A2])
Inherited from
IterableOps
def product[B >: A](num: Numeric[B]): B
Inherited from
IterableOnceOps
def reduce[B >: A](op: (B, B) => B): B
Inherited from
IterableOnceOps
def reduceLeft[B >: A](op: (B, A) => B): B
Inherited from
IterableOnceOps
def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
Inherited from
IterableOnceOps
def reduceOption[B >: A](op: (B, B) => B): Option[B]
Inherited from
IterableOnceOps
def reduceRight[B >: A](op: (A, B) => B): B
Inherited from
IterableOnceOps
def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
Inherited from
IterableOnceOps
def remove(elem: A): Boolean
Inherited from
SetOps
def result(): View[A]
Inherited from
SetOps
protected def reversed: Iterable[A]
Inherited from
IterableOnceOps
def scan[B >: A](z: B)(op: (B, B) => B): View[B]
Inherited from
IterableOps
def scanLeft[B](z: B)(op: (B, A) => B): View[B]
Inherited from
IterableOps
def scanRight[B](z: B)(op: (A, B) => B): View[B]
Inherited from
IterableOps
def size: Int
Inherited from
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int
Inherited from
IterableOps
def sizeCompare(otherSize: Int): Int
Inherited from
IterableOps
final def sizeHint(coll: IterableOnce[_], delta: Int): Unit
Inherited from
Builder
def sizeHint(size: Int): Unit
Inherited from
Builder
final def sizeHintBounded(size: Int, boundingColl: Iterable[_]): Unit
Inherited from
Builder
@inline
final def sizeIs: SizeCompareOps
Inherited from
IterableOps
def slice(from: Int, until: Int): View[A]
Inherited from
IterableOps
def sliding(size: Int, step: Int): Iterator[View[A]]
Inherited from
IterableOps
def sliding(size: Int): Iterator[View[A]]
Inherited from
IterableOps
def span(p: A => Boolean): (View[A], View[A])
Inherited from
IterableOps
override def splitAt(n: Int): (View[A], View[A])
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def stepper[S <: Stepper[_]](shape: StepperShape[A, S]): S
Inherited from
IterableOnce
def subsetOf(that: Set[A]): Boolean
Inherited from
SetOps
def subsets(): Iterator[View[A]]
Inherited from
SetOps
def subsets(len: Int): Iterator[View[A]]
Inherited from
SetOps
def subtractAll(xs: IterableOnce[A]): View[A]
Inherited from
Shrinkable
def subtractOne(elem: A): View[A]
Inherited from
Shrinkable
def sum[B >: A](num: Numeric[B]): B
Inherited from
IterableOnceOps
def tail: View[A]
Inherited from
IterableOps
def tails: Iterator[View[A]]
Inherited from
IterableOps
def take(n: Int): View[A]
Inherited from
IterableOps
def takeRight(n: Int): View[A]
Inherited from
IterableOps
def takeWhile(p: A => Boolean): View[A]
Inherited from
IterableOps
override def tapEach[U](f: A => U): View[A]
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def to[C1](factory: Factory[A, C1]): C1
Inherited from
IterableOnceOps
def toArray[B >: A](ClassTag[B]): Array[B]
Inherited from
IterableOnceOps
@inline
final def toBuffer[B >: A]: Buffer[B]
Inherited from
IterableOnceOps
def toIndexedSeq: IndexedSeq[A]
Inherited from
IterableOnceOps
final def toIterable: View[A]
Inherited from
Iterable
def toList: List[A]
Inherited from
IterableOnceOps
def toMap[K, V](ev: A <:< (K, V)): Map[K, V]
Inherited from
IterableOnceOps
def toSeq: Seq[A]
Inherited from
IterableOnceOps
def toSet[B >: A]: Set[B]
Inherited from
IterableOnceOps
override def toString(): String
Definition Classes
Set -> Function1 -> Iterable -> Any
Inherited from
Set
def toVector: Vector[A]
Inherited from
IterableOnceOps
def transpose[B](asIterable: A => Iterable[B]): View[View[B]]
Inherited from
IterableOps
@inline
final def union(that: Set[A]): View[A]
Inherited from
SetOps
def unzip[A1, A2](asPair: A => (A1, A2)): (View[A1], View[A2])
Inherited from
IterableOps
def unzip3[A1, A2, A3](asTriple: A => (A1, A2, A3)): (View[A1], View[A2], View[A3])
Inherited from
IterableOps
def update(elem: A, included: Boolean): Unit
Inherited from
SetOps
def view: View[A]
Inherited from
IterableOps
def withFilter(p: A => Boolean): WithFilter[A, View]
Inherited from
IterableOps
def zip[B](that: IterableOnce[B]): View[(A, B)]
Inherited from
IterableOps
def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): View[(A1, B)]
Inherited from
IterableOps
def zipWithIndex: View[(A, Int)]
Inherited from
IterableOps
@inline
final def |(that: Set[A]): View[A]
Inherited from
SetOps

Deprecated and Inherited methods

@deprecated("Use ++ with an explicit collection argument instead of + with varargs", "2.13.0")
def +(elem1: A, elem2: A, elems: A*): View[A]
Deprecated
Inherited from
SetOps
@deprecated("Consider requiring an immutable Set or fall back to Set.union", "2.13.0")
def +(elem: A): View[A]
Deprecated
Inherited from
SetOps
@deprecated("Use ++ instead of ++: for collections of type Iterable", "2.13.0")
def ++:[B >: A](that: IterableOnce[B]): View[B]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use `++=` aka `addAll` instead of varargs `+=`; infix operations with an operand of multiple args will be deprecated", "2.13.0")
final def +=(elem1: A, elem2: A, elems: A*): View[A]
Deprecated
Inherited from
Growable
@deprecated("Use &- with an explicit collection argument instead of - with varargs", "2.13.0")
def -(elem1: A, elem2: A, elems: A*): View[A]
Deprecated
Inherited from
SetOps
@deprecated("Consider requiring an immutable Set or fall back to Set.diff", "2.13.0")
def -(elem: A): View[A]
Deprecated
Inherited from
SetOps
@deprecated("Consider requiring an immutable Set", "2.13.0")
def --(that: IterableOnce[A]): View[A]
Deprecated
Inherited from
SetOps
@deprecated("Use `--=` aka `subtractAll` instead of varargs `-=`; infix operations with an operand of multiple args will be deprecated", "2.13.3")
def -=(elem1: A, elem2: A, elems: A*): View[A]
Deprecated
Inherited from
Shrinkable
@inline @deprecated("Use foldLeft instead of /:", "2.13.0")
final def /:[B](z: B)(op: (B, A) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use foldRight instead of :\\", "2.13.0")
final def :\[B](z: B)(op: (A, B) => B): B
Deprecated
Inherited from
IterableOnceOps
@deprecated("`aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.", "2.13.0")
def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
Deprecated
Inherited from
IterableOnceOps
@inline @deprecatedOverriding("Use iterableFactory instead", "2.13.0") @deprecated("Use iterableFactory instead", "2.13.0")
def companion: IterableFactory[View]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use `dest ++= coll` instead", "2.13.0")
final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
Deprecated
Inherited from
IterableOnceOps
@deprecated("Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)", "2.13.0")
def hasDefiniteSize: Boolean
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use coll instead of repr in a collection implementation, use the collection value itself from the outside", "2.13.0")
final def repr: View[A]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use filterInPlace instead", "2.13.0")
final def retain(p: A => Boolean): Unit
Deprecated
Inherited from
SetOps
@deprecated("Iterable.seq always returns the iterable itself", "2.13.0")
def seq: View[A]
Deprecated
Inherited from
Iterable
@inline @deprecated("Use .iterator instead of .toIterator", "2.13.0")
final def toIterator: Iterator[A]
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use .to(LazyList) instead of .toStream", "2.13.0")
final def toStream: Stream[A]
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use toIterable instead", "2.13.0")
final def toTraversable: Iterable[A]
Deprecated
Inherited from
IterableOps
@deprecated("Use .view.slice(from, until) instead of .view(from, until)", "2.13.0")
def view(from: Int, until: Int): View[A]
Deprecated
Inherited from
IterableOps