View

trait View[A, B] extends Map[A, B] with MapOps[A, B, View, View[A, B]] with MapFactoryDefaults[A, B, View, Iterable] with TxnDebuggable

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

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

Companion
object
trait Map[A, B]
trait MapOps[A, B, View, View[A, B]]
trait Shrinkable[A]
trait Builder[(A, B), View[A, B]]
trait Growable[(A, B)]
trait Clearable
trait Cloneable[View[A, B]]
trait Cloneable
trait Map[A, B]
trait Equals
trait MapFactoryDefaults[A, B, View, Iterable]
trait MapOps[A, B, View, View[A, B]]
trait PartialFunction[A, B]
trait A => B
trait Iterable[(A, B)]
trait Iterable[(A, B)]
trait IterableFactoryDefaults[(A, B), [A] =>> Iterable[A]]
trait IterableOps[(A, B), Iterable, View[A, B]]
trait IterableOnceOps[(A, B), Iterable, View[A, B]]
trait IterableOnce[(A, B)]
class Object
trait Matchable
class Any

Value members

Abstract methods

def clone: View[A, B]
def snapshot: Map[A, B]

Takes an atomic snapshot of this transactional map.

Takes an atomic snapshot of this transactional map.

def tmap: TMap[A, B]

Returns the TMap perspective on this transactional map, which provides map functionality only inside atomic blocks.

Returns the TMap perspective on this transactional map, which provides map functionality only inside atomic blocks.

Concrete methods

override def className: String
Definition Classes
Iterable
override def empty: View[A, B]
Definition Classes
MapFactoryDefaults -> IterableFactoryDefaults -> IterableOps
override def mapFactory: MapFactory[View]
Definition Classes
Map -> Map -> MapOps

Inherited methods

@inline
final def ++[B >: (A, B)](suffix: IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def ++[V2 >: B](xs: IterableOnce[(A, V2)]): View[A, V2]
Inherited from
MapOps
@inline
final def ++=(xs: IterableOnce[(A, B)]): View[A, B]
Inherited from
Growable
@inline
final def +=(elem: (A, B)): View[A, B]
Inherited from
Growable
@inline
final def --=(xs: IterableOnce[A]): View[A, B]
Inherited from
Shrinkable
@inline
final def -=(elem: A): View[A, B]
Inherited from
Shrinkable
Inherited from
Cloneable
def addAll(xs: IterableOnce[(A, B)]): View[A, B]
Inherited from
Growable
def addOne(elem: (A, B)): View[A, B]
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
override def addString(sb: StringBuilder, start: String, sep: String, end: String): StringBuilder
Definition Classes
MapOps -> IterableOnceOps
Inherited from
MapOps
def andThen[C](k: PartialFunction[B, C]): PartialFunction[A, C]
Inherited from
PartialFunction
override def andThen[C](k: B => C): PartialFunction[A, C]
Definition Classes
PartialFunction -> Function1
Inherited from
PartialFunction
@throws(scala.this.throws.$lessinit$greater$default$1[scala.NoSuchElementException])
def apply(key: A): B
Inherited from
MapOps
override def applyOrElse[K1 <: A, V1 >: B](x: K1, default: K1 => V1): V1
Definition Classes
MapOps -> PartialFunction
Inherited from
MapOps
def canEqual(that: Any): Boolean
Inherited from
Map
def clear(): Unit
Inherited from
MapOps
def collect[B](pf: PartialFunction[(A, B), B]): Iterable[B]
Inherited from
IterableOps
def collect[K2, V2](pf: PartialFunction[(A, B), (K2, V2)]): View[K2, V2]
Inherited from
MapOps
def collectFirst[B](pf: PartialFunction[(A, B), B]): Option[B]
Inherited from
IterableOnceOps
def compose[R](k: PartialFunction[R, A]): PartialFunction[R, B]
Inherited from
PartialFunction
@unspecialized
def compose[A](g: A => A): A => B
Inherited from
Function1
def concat[B >: (A, B)](suffix: IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def concat[V2 >: B](suffix: IterableOnce[(A, V2)]): View[A, V2]
Inherited from
MapOps
def contains(key: A): Boolean
Inherited from
MapOps
def copyToArray[B >: (A, B)](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, B)](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, B)](xs: Array[B]): Int
Inherited from
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: ((A, B), B) => Boolean): Boolean
Inherited from
IterableOnceOps
def count(p: (A, B) => 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
@throws(scala.this.throws.$lessinit$greater$default$1[scala.NoSuchElementException])
def default(key: A): B
Inherited from
MapOps
def drop(n: Int): View[A, B]
Inherited from
IterableOps
def dropRight(n: Int): View[A, B]
Inherited from
IterableOps
def dropWhile(p: (A, B) => Boolean): View[A, B]
Inherited from
IterableOps
def elementWise: ElementWiseExtractor[A, B]
Inherited from
PartialFunction
override def equals(o: Any): Boolean
Definition Classes
Map -> Equals -> Any
Inherited from
Map
def exists(p: (A, B) => Boolean): Boolean
Inherited from
IterableOnceOps
def filter(pred: (A, B) => Boolean): View[A, B]
Inherited from
IterableOps
def filterInPlace(p: (A, B) => Boolean): View[A, B]
Inherited from
MapOps
def filterNot(pred: (A, B) => Boolean): View[A, B]
Inherited from
IterableOps
def find(p: (A, B) => Boolean): Option[(A, B)]
Inherited from
IterableOnceOps
def flatMap[B](f: (A, B) => IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def flatMap[K2, V2](f: (A, B) => IterableOnce[(K2, V2)]): View[K2, V2]
Inherited from
MapOps
def flatten[B](asIterable: (A, B) => IterableOnce[B]): Iterable[B]
Inherited from
IterableOps
def fold[A1 >: (A, B)](z: A1)(op: (A1, A1) => A1): A1
Inherited from
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (A, B)) => B): B
Inherited from
IterableOnceOps
def foldRight[B](z: B)(op: ((A, B), B) => B): B
Inherited from
IterableOnceOps
def forall(p: (A, B) => Boolean): Boolean
Inherited from
IterableOnceOps
def foreach[U](f: (A, B) => U): Unit
Inherited from
IterableOnceOps
def foreachEntry[U](f: (A, B) => U): Unit
Inherited from
MapOps
override protected def fromSpecific(coll: IterableOnce[(A, B)]): View[A, B]
Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from
MapFactoryDefaults
def get(key: A): Option[B]
Inherited from
MapOps
def getOrElse[V1 >: B](key: A, default: => V1): V1
Inherited from
MapOps
def getOrElseUpdate(key: A, op: => B): B
Inherited from
MapOps
def groupBy[K](f: (A, B) => K): Map[K, View[A, B]]
Inherited from
IterableOps
def groupMap[K, B](key: (A, B) => K)(f: (A, B) => B): Map[K, Iterable[B]]
Inherited from
IterableOps
def groupMapReduce[K, B](key: (A, B) => K)(f: (A, B) => B)(reduce: (B, B) => B): Map[K, B]
Inherited from
IterableOps
def grouped(size: Int): Iterator[View[A, B]]
Inherited from
IterableOps
override def hashCode(): Int
Definition Classes
Map -> Any
Inherited from
Map
def head: (A, B)
Inherited from
IterableOps
def headOption: Option[(A, B)]
Inherited from
IterableOps
def init: View[A, B]
Inherited from
IterableOps
def inits: Iterator[View[A, B]]
Inherited from
IterableOps
def isDefinedAt(key: A): Boolean
Inherited from
MapOps
def isEmpty: Boolean
Inherited from
IterableOnceOps
override def isTraversableAgain: Boolean
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
override def iterableFactory: IterableFactory[[A] =>> Iterable[A]]
Definition Classes
Iterable -> Iterable -> IterableOps
Inherited from
Iterable
def iterator: Iterator[(A, B)]
Inherited from
IterableOnce
def keySet: Set[A]
Inherited from
MapOps
def keyStepper[S <: Stepper[_]](shape: StepperShape[A, S]): S
Inherited from
MapOps
def keys: Iterable[A]
Inherited from
MapOps
def keysIterator: Iterator[A]
Inherited from
MapOps
override def knownSize: Int
Definition Classes
MapOps -> Growable -> IterableOnce
Inherited from
MapOps
def last: (A, B)
Inherited from
IterableOps
def lastOption: Option[(A, B)]
Inherited from
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[(A, B), B, View[A, B]]
Inherited from
Iterable
def lift: A => Option[B]
Inherited from
PartialFunction
def map[B](f: (A, B) => B): Iterable[B]
Inherited from
IterableOps
def map[K2, V2](f: (A, B) => (K2, V2)): View[K2, V2]
Inherited from
MapOps
def mapResult[NewTo](f: View[A, B] => NewTo): Builder[(A, B), NewTo]
Inherited from
Builder
def mapValuesInPlace(f: (A, B) => B): View[A, B]
Inherited from
MapOps
def max[B >: (A, B)](ord: Ordering[B]): (A, B)
Inherited from
IterableOnceOps
def maxBy[B](f: (A, B) => B)(cmp: Ordering[B]): (A, B)
Inherited from
IterableOnceOps
def maxByOption[B](f: (A, B) => B)(cmp: Ordering[B]): Option[(A, B)]
Inherited from
IterableOnceOps
def maxOption[B >: (A, B)](ord: Ordering[B]): Option[(A, B)]
Inherited from
IterableOnceOps
def min[B >: (A, B)](ord: Ordering[B]): (A, B)
Inherited from
IterableOnceOps
def minBy[B](f: (A, B) => B)(cmp: Ordering[B]): (A, B)
Inherited from
IterableOnceOps
def minByOption[B](f: (A, B) => B)(cmp: Ordering[B]): Option[(A, B)]
Inherited from
IterableOnceOps
def minOption[B >: (A, B)](ord: Ordering[B]): Option[(A, B)]
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
override protected def newSpecificBuilder: Builder[(A, B), View[A, B]]
Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from
MapFactoryDefaults
@deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
def nonEmpty: Boolean
Inherited from
IterableOnceOps
def orElse[A1 <: A, B1 >: B](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
Inherited from
PartialFunction
def partition(p: (A, B) => Boolean): (View[A, B], View[A, B])
Inherited from
IterableOps
def partitionMap[A1, A2](f: (A, B) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
Inherited from
IterableOps
def product[B >: (A, B)](num: Numeric[B]): B
Inherited from
IterableOnceOps
def put(key: A, value: B): Option[B]
Inherited from
MapOps
def reduce[B >: (A, B)](op: (B, B) => B): B
Inherited from
IterableOnceOps
def reduceLeft[B >: (A, B)](op: (B, (A, B)) => B): B
Inherited from
IterableOnceOps
def reduceLeftOption[B >: (A, B)](op: (B, (A, B)) => B): Option[B]
Inherited from
IterableOnceOps
def reduceOption[B >: (A, B)](op: (B, B) => B): Option[B]
Inherited from
IterableOnceOps
def reduceRight[B >: (A, B)](op: ((A, B), B) => B): B
Inherited from
IterableOnceOps
def reduceRightOption[B >: (A, B)](op: ((A, B), B) => B): Option[B]
Inherited from
IterableOnceOps
def remove(key: A): Option[B]
Inherited from
MapOps
def result(): View[A, B]
Inherited from
MapOps
protected def reversed: Iterable[(A, B)]
Inherited from
IterableOnceOps
def runWith[U](action: B => U): A => Boolean
Inherited from
PartialFunction
def scan[B >: (A, B)](z: B)(op: (B, B) => B): Iterable[B]
Inherited from
IterableOps
def scanLeft[B](z: B)(op: (B, (A, B)) => B): Iterable[B]
Inherited from
IterableOps
def scanRight[B](z: B)(op: ((A, B), B) => B): Iterable[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, B]
Inherited from
IterableOps
def sliding(size: Int, step: Int): Iterator[View[A, B]]
Inherited from
IterableOps
def sliding(size: Int): Iterator[View[A, B]]
Inherited from
IterableOps
def span(p: (A, B) => Boolean): (View[A, B], View[A, B])
Inherited from
IterableOps
override def splitAt(n: Int): (View[A, B], View[A, B])
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def stepper[S <: Stepper[_]](shape: StepperShape[(A, B), S]): S
Inherited from
IterableOnce
def subtractAll(xs: IterableOnce[A]): View[A, B]
Inherited from
Shrinkable
def subtractOne(elem: A): View[A, B]
Inherited from
Shrinkable
def sum[B >: (A, B)](num: Numeric[B]): B
Inherited from
IterableOnceOps
def tail: View[A, B]
Inherited from
IterableOps
def tails: Iterator[View[A, B]]
Inherited from
IterableOps
def take(n: Int): View[A, B]
Inherited from
IterableOps
def takeRight(n: Int): View[A, B]
Inherited from
IterableOps
def takeWhile(p: (A, B) => Boolean): View[A, B]
Inherited from
IterableOps
override def tapEach[U](f: (A, B) => U): View[A, B]
Definition Classes
IterableOps -> IterableOnceOps
Inherited from
IterableOps
def to[C1](factory: Factory[(A, B), C1]): C1
Inherited from
IterableOnceOps
def toArray[B >: (A, B)](ClassTag[B]): Array[B]
Inherited from
IterableOnceOps
@inline
final def toBuffer[B >: (A, B)]: Buffer[B]
Inherited from
IterableOnceOps
def toIndexedSeq: IndexedSeq[(A, B)]
Inherited from
IterableOnceOps
final def toIterable: View[A, B]
Inherited from
Iterable
def toList: List[(A, B)]
Inherited from
IterableOnceOps
def toMap[K, V](ev: (A, B) <:< (K, V)): Map[K, V]
Inherited from
IterableOnceOps
def toSeq: Seq[(A, B)]
Inherited from
IterableOnceOps
def toSet[B >: (A, B)]: Set[B]
Inherited from
IterableOnceOps
override def toString(): String
Definition Classes
Map -> Function1 -> Iterable -> Any
Inherited from
Map
def toVector: Vector[(A, B)]
Inherited from
IterableOnceOps
def transpose[B](asIterable: (A, B) => Iterable[B]): Iterable[Iterable[B]]
Inherited from
IterableOps
def unapply(a: A): Option[B]
Inherited from
PartialFunction
def unzip[A1, A2](asPair: (A, B) => (A1, A2)): (Iterable[A1], Iterable[A2])
Inherited from
IterableOps
def unzip3[A1, A2, A3](asTriple: (A, B) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
Inherited from
IterableOps
def update(key: A, value: B): Unit
Inherited from
MapOps
def updateWith(key: A)(remappingFunction: Option[B] => Option[B]): Option[B]
Inherited from
MapOps
def valueStepper[S <: Stepper[_]](shape: StepperShape[B, S]): S
Inherited from
MapOps
def values: Iterable[B]
Inherited from
MapOps
def valuesIterator: Iterator[B]
Inherited from
MapOps
override def view: MapView[A, B]
Definition Classes
MapOps -> IterableOps
Inherited from
MapOps
def withDefault(d: A => B): Map[A, B]
Inherited from
Map
def withDefaultValue(d: B): Map[A, B]
Inherited from
Map
override def withFilter(p: (A, B) => Boolean): WithFilter[A, B, Iterable, View]
Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from
MapFactoryDefaults
def zip[B](that: IterableOnce[B]): Iterable[((A, B), B)]
Inherited from
IterableOps
def zipAll[A1 >: (A, B), B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
Inherited from
IterableOps
def zipWithIndex: Iterable[((A, B), Int)]
Inherited from
IterableOps

Deprecated and Inherited methods

@deprecated("Use ++ with an explicit collection argument instead of + with varargs", "2.13.0")
def +[V1 >: B](elem1: (A, V1), elem2: (A, V1), elems: (A, V1)*): View[A, V1]
Deprecated
Inherited from
MapOps
@deprecated("Consider requiring an immutable Map or fall back to Map.concat.", "2.13.0")
def +[V1 >: B](kv: (A, V1)): View[A, V1]
Deprecated
Inherited from
MapOps
@deprecated("Use ++ instead of ++: for collections of type Iterable", "2.13.0")
def ++:[B >: (A, B)](that: IterableOnce[B]): Iterable[B]
Deprecated
Inherited from
IterableOps
@deprecated("Use ++ instead of ++: for collections of type Iterable", "2.13.0")
def ++:[V1 >: B](that: IterableOnce[(A, V1)]): View[A, V1]
Deprecated
Inherited from
MapOps
@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, B), elem2: (A, B), elems: (A, B)*): View[A, B]
Deprecated
Inherited from
Growable
@deprecated("Use -- or removeAll on an immutable Map", "2.13.0")
final def -(key1: A, key2: A, keys: A*): View[A, B]
Deprecated
Inherited from
MapOps
@deprecated("Use - or remove on an immutable Map", "2.13.0")
final def -(key: A): View[A, B]
Deprecated
Inherited from
MapOps
@inline @deprecated("Consider requiring an immutable Map.", "2.13.0")
def --(keys: IterableOnce[A]): View[A, B]
Deprecated
Inherited from
MapOps
@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, B]
Deprecated
Inherited from
Shrinkable
@inline @deprecated("Use foldLeft instead of /:", "2.13.0")
final def /:[B](z: B)(op: (B, (A, B)) => 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): 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)) => 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[Iterable]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use `dest ++= coll` instead", "2.13.0")
final def copyToBuffer[B >: (A, B)](dest: Buffer[B]): Unit
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use .view.filterKeys(f). A future version will include a strict version of this method (for now, .view.filterKeys(p).toMap).", "2.13.0")
def filterKeys(p: A => Boolean): MapView[A, B]
Deprecated
Inherited from
MapOps
@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 .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap).", "2.13.0")
def mapValues[W](f: B => W): MapView[A, W]
Deprecated
Inherited from
MapOps
@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, B]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use filterInPlace instead", "2.13.0")
final def retain(p: (A, B) => Boolean): View[A, B]
Deprecated
Inherited from
MapOps
@deprecated("Iterable.seq always returns the iterable itself", "2.13.0")
def seq: View[A, B]
Deprecated
Inherited from
Iterable
@inline @deprecated("Use .iterator instead of .toIterator", "2.13.0")
final def toIterator: Iterator[(A, B)]
Deprecated
Inherited from
IterableOnceOps
@inline @deprecated("Use .to(LazyList) instead of .toStream", "2.13.0")
final def toStream: Stream[(A, B)]
Deprecated
Inherited from
IterableOnceOps
@deprecated("Use toIterable instead", "2.13.0")
final def toTraversable: Iterable[(A, B)]
Deprecated
Inherited from
IterableOps
@inline @deprecated("Use mapValuesInPlace instead", "2.13.0")
final def transform(f: (A, B) => B): View[A, B]
Deprecated
Inherited from
MapOps
@deprecated("Use m.clone().addOne((k,v)) instead of m.updated(k, v)", "2.13.0")
def updated[V1 >: B](key: A, value: V1): View[A, V1]
Deprecated
Inherited from
MapOps
@deprecated("Use .view.slice(from, until) instead of .view(from, until)", "2.13.0")
def view(from: Int, until: Int): View[(A, B)]
Deprecated
Inherited from
IterableOps