ConfigMap

org.scalatest.ConfigMap
See theConfigMap companion object
class ConfigMap(underlying: Map[String, Any]) extends Map[String, Any], Serializable

A map of configuration data.

A ConfigMap can be populated from the Runner command line via -D arguments. Runner passes it to many methods where you can use it to configure your test runs. For example, Runner passed the ConfigMap to:

  • the apply method of Reporters via RunStarting events

  • the run method of Suite

  • the runNestedSuites method of Suite

  • the runTests method of Suite

  • the runTest method of Suite

  • the withFixture(NoArgTest) method of Suite

  • the withFixture(OneArgTest) method of fixture.Suite

  • the beforeEach(TestData) method of BeforeAndAfterEachTestData

  • the afterEach(TestData) method of BeforeAndAfterEachTestData

In addition to accessing the ConfigMap in overriden implementations of the above methods, you can also transform and pass along a modified ConfigMap.

A ConfigMap maps string keys to values of any type, i.e., it is a Map[String, Any]. To get a configuration value in a variable of the actual type of that value, therefore, you'll need to perform an unsafe cast. If this cast fails, you'll get an exception, which so long as the ConfigMap is used only in tests, will result in either a failed or canceled test or aborted suite. To give such exceptions nice stack depths and error messages, and to eliminate the need for using asInstanceOf in your test code, ConfigMap provides three methods for accessing values at expected types.

The getRequired method returns the value bound to a key cast to a specified type, or throws TestCanceledException if either the key is not bound or is bound to an incompatible type. Here's an example:

val tempFileName: String = configMap.getRequired[String]("tempFileName")

The getOptional method returns the value bound to a key cast to a specified type, wrapped in a Some, returns None if the key is not bound, or throws TestCanceledException if the key exists but is bound to an incompatible type. Here's an example:

val tempFileName: Option[String] = configMap.getOptional[String]("tempFileName")

The getWithDefault method returns the value bound to a key cast to a specified type, returns a specified default value if the key is not bound, or throws TestCanceledException if the key exists but is either not bound or is bound to an incompatible type. Here's an example:

val tempFileName: String = configMap.getWithDefault[String]("tempFileName", "tmp.txt")

Value parameters

underlying

an immutable Map that holds the key/value pairs contained in this ConfigMap

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Map[String, Any]
trait MapOps[String, Any, Map, Map[String, Any]]
trait Map[String, Any]
trait Equals
trait MapFactoryDefaults[String, Any, Map, Iterable]
trait MapOps[String, Any, Map, Map[String, Any]]
trait PartialFunction[String, Any]
trait String => Any
trait Iterable[(String, Any)]
trait Iterable[(String, Any)]
trait IterableFactoryDefaults[(String, Any), Iterable]
trait IterableOps[(String, Any), Iterable, Map[String, Any]]
trait IterableOnceOps[(String, Any), Iterable, Map[String, Any]]
trait IterableOnce[(String, Any)]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

protected class ImmutableKeySet()

Attributes

Inherited from:
MapOps
Supertypes
trait DefaultSerializable
trait Serializable
class AbstractSet[K]
trait Set[K]
trait SetOps[K, Set, Set[K]]
trait Iterable[K]
class AbstractSet[K]
trait Set[K]
trait Equals
trait SetOps[K, Set, Set[K]]
trait K => Boolean
class AbstractIterable[K]
trait Iterable[K]
trait IterableFactoryDefaults[K, Set]
trait IterableOps[K, Set, Set[K]]
trait IterableOnceOps[K, Set, Set[K]]
trait IterableOnce[K]
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

override def +[A = Any](kv: (String, A)): ConfigMap

Attributes

Definition Classes
MapOps -> MapOps
override def empty: ConfigMap

Attributes

Definition Classes
MapFactoryDefaults -> IterableFactoryDefaults -> IterableOps
def get(key: String): Option[Any]
def getOptional[V](key: String)(implicit classTag: ClassTag[V]): Option[V]

Returns the value bound to a key cast to a specified type, wrapped in a Some, returns None if the key is not bound, or throws TestCanceledException if the key exists but is bound to an incompatible type. Here's an example:

Returns the value bound to a key cast to a specified type, wrapped in a Some, returns None if the key is not bound, or throws TestCanceledException if the key exists but is bound to an incompatible type. Here's an example:

val tempFileName: Option[String] = configMap.getOptional[String]("tempFileName")

Value parameters

classTag

an implicit ClassTag specifying the expected type for the desired value

key

the key with which the desired value should be associated

Attributes

def getRequired[V](key: String)(implicit classTag: ClassTag[V], pos: Position): V

Returns the value bound to a key cast to the specified type V, or throws TestCanceledException if either the key is not bound or is bound to an incompatible type. Here's an example:

Returns the value bound to a key cast to the specified type V, or throws TestCanceledException if either the key is not bound or is bound to an incompatible type. Here's an example:

val tempFileName: String = configMap.getRequired[String]("tempFileName")

Value parameters

classTag

an implicit ClassTag specifying the expected type for the desired value

key

the key with which the desired value should be associated

Attributes

def getWithDefault[V](key: String, default: => V)(implicit classTag: ClassTag[V]): V

Returns the value bound to a key cast to the specified type V, returns a specified default value if the key is not bound, or throws TestCanceledException if the key exists but is if either the key is not bound or is bound to an incompatible type. Here's an example:

Returns the value bound to a key cast to the specified type V, returns a specified default value if the key is not bound, or throws TestCanceledException if the key exists but is if either the key is not bound or is bound to an incompatible type. Here's an example:

val tempFileName: String = configMap.getWithDefault[String]("tempFileName", "tmp.txt")

Value parameters

classTag

an implicit ClassTag specifying the expected type for the desired value

default

a default value to return if the key is not found

key

the key with which the desired value should be associated

Attributes

def iterator: Iterator[(String, Any)]
def removed(key: String): ConfigMap
def updated[V1 = Any](key: String, value: V1): ConfigMap

Inherited methods

final def ++[B >: (String, Any)](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def ++[V2 >: Any](xs: IterableOnce[(String, V2)]): CC[K, V2]

Attributes

Inherited from:
MapOps
final def -(key: String): C

Attributes

Inherited from:
MapOps
final override def --(keys: IterableOnce[String]): C

Attributes

Definition Classes
MapOps -> MapOps
Inherited from:
MapOps
final def addString(b: StringBuilder): StringBuilder

Attributes

Inherited from:
IterableOnceOps
final def addString(b: StringBuilder, sep: String): StringBuilder

Attributes

Inherited from:
IterableOnceOps
override def addString(sb: StringBuilder, start: String, sep: String, end: String): StringBuilder

Attributes

Definition Classes
MapOps -> IterableOnceOps
Inherited from:
MapOps
def andThen[C](k: PartialFunction[Any, C]): PartialFunction[A, C]

Attributes

Inherited from:
PartialFunction
override def andThen[C](k: Any => C): PartialFunction[A, C]

Attributes

Definition Classes
PartialFunction -> Function1
Inherited from:
PartialFunction
def apply(key: String): V

Attributes

Inherited from:
MapOps
override def applyOrElse[K1 <: String, V1 >: Any](x: K1, default: K1 => V1): V1

Attributes

Definition Classes
MapOps -> PartialFunction
Inherited from:
MapOps
def canEqual(that: Any): Boolean

Attributes

Inherited from:
Map
def collect[B](pf: PartialFunction[(String, Any), B]): CC[B]

Attributes

Inherited from:
IterableOps
def collect[K2, V2](pf: PartialFunction[(String, Any), (K2, V2)]): CC[K2, V2]

Attributes

Inherited from:
MapOps
def collectFirst[B](pf: PartialFunction[(String, Any), B]): Option[B]

Attributes

Inherited from:
IterableOnceOps
def compose[R](k: PartialFunction[R, String]): PartialFunction[R, B]

Attributes

Inherited from:
PartialFunction
def compose[A](g: A => String): A => R

Attributes

Inherited from:
Function1
def concat[B >: (String, Any)](suffix: IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def concat[V2 >: Any](suffix: IterableOnce[(String, V2)]): CC[K, V2]

Attributes

Inherited from:
MapOps
def contains(key: String): Boolean

Attributes

Inherited from:
MapOps
def copyToArray[B >: (String, Any)](xs: Array[B], start: Int, len: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: (String, Any)](xs: Array[B], start: Int): Int

Attributes

Inherited from:
IterableOnceOps
def copyToArray[B >: (String, Any)](xs: Array[B]): Int

Attributes

Inherited from:
IterableOnceOps
def corresponds[B](that: IterableOnce[B])(p: ((String, Any), B) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def count(p: ((String, Any)) => Boolean): Int

Attributes

Inherited from:
IterableOnceOps
def default(key: String): V

Attributes

Inherited from:
MapOps
def drop(n: Int): C

Attributes

Inherited from:
IterableOps
def dropRight(n: Int): C

Attributes

Inherited from:
IterableOps
def dropWhile(p: ((String, Any)) => Boolean): C

Attributes

Inherited from:
IterableOps
def elementWise: ElementWiseExtractor[A, B]

Attributes

Inherited from:
PartialFunction
override def equals(o: Any): Boolean

Compares the receiver object (this) with the argument object (that) for equivalence.

Compares the receiver object (this) with the argument object (that) for equivalence.

Any implementation of this method should be an equivalence relation:

  • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
  • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any instances x, y, and z of type Any if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is usually necessary to override hashCode to ensure that objects which are "equal" (o1.equals(o2) returns true) hash to the same scala.Int. (o1.hashCode.equals(o2.hashCode)).

Value parameters

that

the object to compare against this object for equality.

Attributes

Returns

true if the receiver object is equivalent to the argument; false otherwise.

Definition Classes
Map -> Equals -> Any
Inherited from:
Map
def exists(p: ((String, Any)) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def filter(pred: ((String, Any)) => Boolean): C

Attributes

Inherited from:
IterableOps
def filterNot(pred: ((String, Any)) => Boolean): C

Attributes

Inherited from:
IterableOps
def find(p: ((String, Any)) => Boolean): Option[A]

Attributes

Inherited from:
IterableOnceOps
def flatMap[B](f: ((String, Any)) => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def flatMap[K2, V2](f: ((String, Any)) => IterableOnce[(K2, V2)]): CC[K2, V2]

Attributes

Inherited from:
MapOps
def flatten[B](implicit asIterable: ((String, Any)) => IterableOnce[B]): CC[B]

Attributes

Inherited from:
IterableOps
def fold[A1 >: (String, Any)](z: A1)(op: (A1, A1) => A1): A1

Attributes

Inherited from:
IterableOnceOps
def foldLeft[B](z: B)(op: (B, (String, Any)) => B): B

Attributes

Inherited from:
IterableOnceOps
def foldRight[B](z: B)(op: ((String, Any), B) => B): B

Attributes

Inherited from:
IterableOnceOps
def forall(p: ((String, Any)) => Boolean): Boolean

Attributes

Inherited from:
IterableOnceOps
def foreach[U](f: ((String, Any)) => U): Unit

Attributes

Inherited from:
IterableOnceOps
def foreachEntry[U](f: (String, Any) => U): Unit

Attributes

Inherited from:
MapOps
override protected def fromSpecific(coll: IterableOnce[(String, Any)]): CC[K, V]

Attributes

Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from:
MapFactoryDefaults
def getOrElse[V1 >: Any](key: String, default: => V1): V1

Attributes

Inherited from:
MapOps
def groupBy[K](f: ((String, Any)) => K): Map[K, C]

Attributes

Inherited from:
IterableOps
def groupMap[K, B](key: ((String, Any)) => K)(f: ((String, Any)) => B): Map[K, CC[B]]

Attributes

Inherited from:
IterableOps
def groupMapReduce[K, B](key: ((String, Any)) => K)(f: ((String, Any)) => B)(reduce: (B, B) => B): Map[K, B]

Attributes

Inherited from:
IterableOps
def grouped(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
override def hashCode(): Int

Calculate a hash code value for the object.

Calculate a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Map -> Any
Inherited from:
Map
def head: A

Attributes

Inherited from:
IterableOps
def headOption: Option[A]

Attributes

Inherited from:
IterableOps
def init: C

Attributes

Inherited from:
IterableOps
def inits: Iterator[C]

Attributes

Inherited from:
IterableOps
def isDefinedAt(key: String): Boolean

Attributes

Inherited from:
MapOps
def isEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
override def isTraversableAgain: Boolean

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
override def iterableFactory: IterableFactory[Iterable]

Attributes

Definition Classes
Iterable -> Iterable -> IterableOps
Inherited from:
Iterable
override def keySet: Set[K]

Attributes

Definition Classes
MapOps -> MapOps
Inherited from:
MapOps
def keyStepper[S <: Stepper[_]](implicit shape: StepperShape[String, S]): S

Attributes

Inherited from:
MapOps
def keys: Iterable[K]

Attributes

Inherited from:
MapOps
def keysIterator: Iterator[K]

Attributes

Inherited from:
MapOps
def knownSize: Int

Attributes

Inherited from:
IterableOnce
def last: A

Attributes

Inherited from:
IterableOps
def lastOption: Option[A]

Attributes

Inherited from:
IterableOps
def lazyZip[B](that: Iterable[B]): LazyZip2[A, B, Iterable]

Attributes

Inherited from:
Iterable
def lift: A => Option[B]

Attributes

Inherited from:
PartialFunction
def map[B](f: ((String, Any)) => B): CC[B]

Attributes

Inherited from:
IterableOps
def map[K2, V2](f: ((String, Any)) => (K2, V2)): CC[K2, V2]

Attributes

Inherited from:
MapOps
override def mapFactory: MapFactory[Map]

Attributes

Definition Classes
Map -> Map -> MapOps
Inherited from:
Map
def max[B >: (String, Any)](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxBy[B](f: ((String, Any)) => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def maxByOption[B](f: ((String, Any)) => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def maxOption[B >: (String, Any)](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def min[B >: (String, Any)](implicit ord: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minBy[B](f: ((String, Any)) => B)(implicit cmp: Ordering[B]): A

Attributes

Inherited from:
IterableOnceOps
def minByOption[B](f: ((String, Any)) => B)(implicit cmp: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
def minOption[B >: (String, Any)](implicit ord: Ordering[B]): Option[A]

Attributes

Inherited from:
IterableOnceOps
final def mkString: String

Attributes

Inherited from:
IterableOnceOps
final def mkString(sep: String): String

Attributes

Inherited from:
IterableOnceOps
final def mkString(start: String, sep: String, end: String): String

Attributes

Inherited from:
IterableOnceOps
override protected def newSpecificBuilder: Builder[(K, V), CC[K, V]]

Attributes

Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from:
MapFactoryDefaults
def nonEmpty: Boolean

Attributes

Inherited from:
IterableOnceOps
def orElse[A1 <: String, B1 >: Any](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

Attributes

Inherited from:
PartialFunction
def partition(p: ((String, Any)) => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
def partitionMap[A1, A2](f: ((String, Any)) => Either[A1, A2]): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps
def product[B >: (String, Any)](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def reduce[B >: (String, Any)](op: (B, B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeft[B >: (String, Any)](op: (B, (String, Any)) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceLeftOption[B >: (String, Any)](op: (B, (String, Any)) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceOption[B >: (String, Any)](op: (B, B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def reduceRight[B >: (String, Any)](op: ((String, Any), B) => B): B

Attributes

Inherited from:
IterableOnceOps
def reduceRightOption[B >: (String, Any)](op: ((String, Any), B) => B): Option[B]

Attributes

Inherited from:
IterableOnceOps
def removedAll(keys: IterableOnce[String]): C

Attributes

Inherited from:
MapOps
protected def reversed: Iterable[A]

Attributes

Inherited from:
IterableOnceOps
def runWith[U](action: Any => U): A => Boolean

Attributes

Inherited from:
PartialFunction
def scan[B >: (String, Any)](z: B)(op: (B, B) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanLeft[B](z: B)(op: (B, (String, Any)) => B): CC[B]

Attributes

Inherited from:
IterableOps
def scanRight[B](z: B)(op: ((String, Any), B) => B): CC[B]

Attributes

Inherited from:
IterableOps
def size: Int

Attributes

Inherited from:
IterableOnceOps
def sizeCompare(that: Iterable[_]): Int

Attributes

Inherited from:
IterableOps
def sizeCompare(otherSize: Int): Int

Attributes

Inherited from:
IterableOps
final def sizeIs: SizeCompareOps

Attributes

Inherited from:
IterableOps
def slice(from: Int, until: Int): C

Attributes

Inherited from:
IterableOps
def sliding(size: Int, step: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
def sliding(size: Int): Iterator[C]

Attributes

Inherited from:
IterableOps
def span(p: ((String, Any)) => Boolean): (C, C)

Attributes

Inherited from:
IterableOps
override def splitAt(n: Int): (C, C)

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def stepper[S <: Stepper[_]](implicit shape: StepperShape[(String, Any), S]): S

Attributes

Inherited from:
IterableOnce
def sum[B >: (String, Any)](implicit num: Numeric[B]): B

Attributes

Inherited from:
IterableOnceOps
def tail: C

Attributes

Inherited from:
IterableOps
def tails: Iterator[C]

Attributes

Inherited from:
IterableOps
def take(n: Int): C

Attributes

Inherited from:
IterableOps
def takeRight(n: Int): C

Attributes

Inherited from:
IterableOps
def takeWhile(p: ((String, Any)) => Boolean): C

Attributes

Inherited from:
IterableOps
override def tapEach[U](f: ((String, Any)) => U): C

Attributes

Definition Classes
IterableOps -> IterableOnceOps
Inherited from:
IterableOps
def to[C1](factory: Factory[(String, Any), C1]): C1

Attributes

Inherited from:
IterableOnceOps
def toArray[B >: (String, Any) : ClassTag]: Array[B]

Attributes

Inherited from:
IterableOnceOps
final def toBuffer[B >: (String, Any)]: Buffer[B]

Attributes

Inherited from:
IterableOnceOps
def toIndexedSeq: IndexedSeq[A]

Attributes

Inherited from:
IterableOnceOps
def toList: List[A]

Attributes

Inherited from:
IterableOnceOps
final override def toMap[K2, V2](implicit ev: (String, Any) <:< (K2, V2)): Map[K2, V2]

Attributes

Definition Classes
Map -> IterableOnceOps
Inherited from:
Map
def toSeq: Seq[A]

Attributes

Inherited from:
IterableOnceOps
def toSet[B >: (String, Any)]: Set[B]

Attributes

Inherited from:
IterableOnceOps
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Map -> Function1 -> Iterable -> Any
Inherited from:
Map
def toVector: Vector[A]

Attributes

Inherited from:
IterableOnceOps
def transform[W](f: (String, Any) => W): CC[K, W]

Attributes

Inherited from:
MapOps
def transpose[B](implicit asIterable: ((String, Any)) => Iterable[B]): CC[CC[B]]

Attributes

Inherited from:
IterableOps
def unapply(a: String): Option[B]

Attributes

Inherited from:
PartialFunction
def unzip[A1, A2](implicit asPair: ((String, Any)) => (A1, A2)): (CC[A1], CC[A2])

Attributes

Inherited from:
IterableOps
def unzip3[A1, A2, A3](implicit asTriple: ((String, Any)) => (A1, A2, A3)): (CC[A1], CC[A2], CC[A3])

Attributes

Inherited from:
IterableOps
def updatedWith[V1 >: Any](key: String)(remappingFunction: Option[Any] => Option[V1]): CC[K, V1]

Attributes

Inherited from:
MapOps
def valueStepper[S <: Stepper[_]](implicit shape: StepperShape[Any, S]): S

Attributes

Inherited from:
MapOps
def values: Iterable[V]

Attributes

Inherited from:
MapOps
def valuesIterator: Iterator[V]

Attributes

Inherited from:
MapOps
override def view: MapView[K, V]

Attributes

Definition Classes
MapOps -> IterableOps
Inherited from:
MapOps
def withDefault[V1 >: Any](d: String => V1): Map[K, V1]

Attributes

Inherited from:
Map
def withDefaultValue[V1 >: Any](d: V1): Map[K, V1]

Attributes

Inherited from:
Map
override def withFilter(p: ((String, Any)) => Boolean): WithFilter[K, V, WithFilterCC, CC]

Attributes

Definition Classes
MapFactoryDefaults -> IterableOps
Inherited from:
MapFactoryDefaults
def zip[B](that: IterableOnce[B]): CC[(A, B)]

Attributes

Inherited from:
IterableOps
def zipAll[A1 >: (String, Any), B](that: Iterable[B], thisElem: A1, thatElem: B): CC[(A1, B)]

Attributes

Inherited from:
IterableOps
def zipWithIndex: CC[(A, Int)]

Attributes

Inherited from:
IterableOps

Deprecated and Inherited methods

def +[V1 >: Any](elem1: (String, V1), elem2: (String, V1), elems: (String, V1)*): CC[K, V1]

Attributes

Deprecated
[Since version 2.13.0] Use ++ with an explicit collection argument instead of + with varargs
Inherited from:
MapOps
def ++:[B >: (String, Any)](that: IterableOnce[B]): CC[B]

Attributes

Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
IterableOps
def ++:[V1 >: Any](that: IterableOnce[(String, V1)]): CC[K, V1]

Attributes

Deprecated
[Since version 2.13.0] Use ++ instead of ++: for collections of type Iterable
Inherited from:
MapOps
def -(key1: String, key2: String, keys: String*): C

Attributes

Deprecated
[Since version 2.13.0] Use -- with an explicit collection
Inherited from:
MapOps
final def /:[B](z: B)(op: (B, (String, Any)) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldLeft instead of /:
Inherited from:
IterableOnceOps
final def :\[B](z: B)(op: ((String, Any), B) => B): B

Attributes

Deprecated
[Since version 2.13.0] Use foldRight instead of :\\
Inherited from:
IterableOnceOps
def aggregate[B](z: => B)(seqop: (B, (String, Any)) => B, combop: (B, B) => B): B

Attributes

Deprecated
[Since version 2.13.0] `aggregate` is not relevant for sequential collections. Use `foldLeft(z)(seqop)` instead.
Inherited from:
IterableOnceOps
def companion: IterableFactory[CC]

Attributes

Deprecated
[Since version 2.13.0] Use iterableFactory instead
Inherited from:
IterableOps
final def copyToBuffer[B >: (String, Any)](dest: Buffer[B]): Unit

Attributes

Deprecated
[Since version 2.13.0] Use `dest ++= coll` instead
Inherited from:
IterableOnceOps
def filterKeys(p: String => Boolean): MapView[K, V]

Attributes

Deprecated
[Since version 2.13.0] Use .view.filterKeys(f). A future version will include a strict version of this method (for now, .view.filterKeys(p).toMap).
Inherited from:
MapOps
def hasDefiniteSize: Boolean

Attributes

Deprecated
[Since version 2.13.0] Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
Inherited from:
IterableOnceOps
def mapValues[W](f: Any => W): MapView[K, W]

Attributes

Deprecated
[Since version 2.13.0] Use .view.mapValues(f). A future version will include a strict version of this method (for now, .view.mapValues(f).toMap).
Inherited from:
MapOps
final def repr: C

Attributes

Deprecated
[Since version 2.13.0] Use coll instead of repr in a collection implementation, use the collection value itself from the outside
Inherited from:
IterableOps
def seq: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.0] Iterable.seq always returns the iterable itself
Inherited from:
Iterable
final def toIterable: Iterable.this.type

Attributes

Deprecated
[Since version 2.13.7] toIterable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
Iterable
final def toIterator: Iterator[A]

Attributes

Deprecated
[Since version 2.13.0] Use .iterator instead of .toIterator
Inherited from:
IterableOnceOps
final def toStream: Stream[A]

Attributes

Deprecated
[Since version 2.13.0] Use .to(LazyList) instead of .toStream
Inherited from:
IterableOnceOps
final def toTraversable: Iterable[A]

Attributes

Deprecated
[Since version 2.13.0] toTraversable is internal and will be made protected; its name is similar to `toList` or `toSeq`, but it doesn\'t copy non-immutable collections
Inherited from:
IterableOps
def view(from: Int, until: Int): View[A]

Attributes

Deprecated
[Since version 2.13.0] Use .view.slice(from, until) instead of .view(from, until)
Inherited from:
IterableOps