class ConfigMap extends Map[String, Any] with MapLike[String, Any, ConfigMap] with 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 ofReporter
s viaRunStarting
events - the
run
method ofSuite
- the
runNestedSuites
method ofSuite
- the
runTests
method ofSuite
- the
runTest
method ofSuite
- the
withFixture(NoArgTest)
method ofSuite
- the
withFixture(OneArgTest)
method offixture.Suite
- the
beforeEach(TestData)
method ofBeforeAndAfterEachTestData
- the
afterEach(TestData)
method ofBeforeAndAfterEachTestData
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")
- Source
- ConfigMap.scala
- Alphabetic
- By Inheritance
- ConfigMap
- Serializable
- Map
- MapLike
- Map
- MapLike
- Subtractable
- PartialFunction
- Function1
- GenMap
- GenMapLike
- Iterable
- Iterable
- IterableLike
- Equals
- GenIterable
- GenIterableLike
- Traversable
- Immutable
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ConfigMap(underlying: Map[String, Any])
- underlying
an immutable
Map
that holds the key/value pairs contained in thisConfigMap
Type Members
-
class
DefaultKeySet extends AbstractSet[K] with Set[K] with Serializable
- Attributes
- protected
- Definition Classes
- MapLike
-
class
DefaultValuesIterable extends AbstractIterable[V] with Iterable[V] with Serializable
- Attributes
- protected
- Definition Classes
- MapLike
-
class
FilteredKeys extends AbstractMap[K, V] with DefaultMap[K, V]
- Attributes
- protected
- Definition Classes
- MapLike
-
class
ImmutableDefaultKeySet extends scala.collection.immutable.MapLike.DefaultKeySet with Set[K]
- Attributes
- protected
- Definition Classes
- MapLike
-
class
MappedValues[W] extends AbstractMap[K, W] with DefaultMap[K, W]
- Attributes
- protected
- Definition Classes
- MapLike
-
type
Self = ConfigMap
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
class
WithFilter extends FilterMonadic[A, Repr]
- Definition Classes
- TraversableLike
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+[A >: Any](kv: (String, A)): ConfigMap
- Definition Classes
- ConfigMap → Map → MapLike → MapLike → GenMapLike
-
def
+[V1 >: Any](elem1: (String, V1), elem2: (String, V1), elems: (String, V1)*): Map[String, V1]
- Definition Classes
- MapLike → MapLike
-
def
++[V1 >: Any](xs: GenTraversableOnce[(String, V1)]): Map[String, V1]
- Definition Classes
- MapLike → MapLike
-
def
++[B >: (String, Any), That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
++:[B >: (String, Any), That](that: Traversable[B])(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: (String, Any), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike
-
def
-(key: String): ConfigMap
- Definition Classes
- ConfigMap → MapLike → Subtractable → GenMapLike
-
def
-(elem1: String, elem2: String, elems: String*): ConfigMap
- Definition Classes
- Subtractable
-
def
--(xs: GenTraversableOnce[String]): ConfigMap
- Definition Classes
- Subtractable
-
def
/:[B](z: B)(op: (B, (String, Any)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: ((String, Any), B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- MapLike → TraversableOnce
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, (String, Any)) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
andThen[C](k: (Any) ⇒ C): PartialFunction[String, C]
- Definition Classes
- PartialFunction → Function1
-
def
apply(key: String): Any
- Definition Classes
- MapLike → GenMapLike → Function1
-
def
applyOrElse[K1 <: String, V1 >: Any](x: K1, default: (K1) ⇒ V1): V1
- Definition Classes
- MapLike → PartialFunction
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(that: Any): Boolean
- Definition Classes
- IterableLike → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collect[B, That](pf: PartialFunction[(String, Any), B])(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[(String, Any), B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
companion: GenericCompanion[Iterable]
- Definition Classes
- Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
-
def
compose[A](g: (A) ⇒ String): (A) ⇒ Any
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
contains(key: String): Boolean
- Definition Classes
- MapLike → GenMapLike
-
def
copyToArray[B >: (String, Any)](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (String, Any)](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: (String, Any)](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: (String, Any)](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
count(p: ((String, Any)) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
default(key: String): Any
- Definition Classes
- MapLike → GenMapLike
-
def
drop(n: Int): ConfigMap
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
dropRight(n: Int): ConfigMap
- Definition Classes
- IterableLike
-
def
dropWhile(p: ((String, Any)) ⇒ Boolean): ConfigMap
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
empty: ConfigMap
- Definition Classes
- ConfigMap → Map → Map → MapLike
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- GenMapLike → Equals → AnyRef → Any
-
def
exists(p: ((String, Any)) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
filter(p: ((String, Any)) ⇒ Boolean): ConfigMap
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
filterKeys(p: (String) ⇒ Boolean): Map[String, Any]
- Definition Classes
- MapLike → MapLike → GenMapLike
-
def
filterNot(p: ((String, Any)) ⇒ Boolean): ConfigMap
- Definition Classes
- MapLike → TraversableLike → GenTraversableLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: ((String, Any)) ⇒ Boolean): Option[(String, Any)]
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
flatMap[B, That](f: ((String, Any)) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten[B](implicit asTraversable: ((String, Any)) ⇒ GenTraversableOnce[B]): Iterable[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: (String, Any)](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, (String, Any)) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: ((String, Any), B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
forall(p: ((String, Any)) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[U](f: ((String, Any)) ⇒ U): Unit
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
-
def
genericBuilder[B]: Builder[B, Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
-
def
get(key: String): Option[Any]
- Definition Classes
- ConfigMap → MapLike → GenMapLike
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
, returnsNone
if the key is not bound, or throws TestCanceledException if the key exists but is bound to an incompatible type.Returns the value bound to a key cast to a specified type, wrapped in a
Some
, returnsNone
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")
- key
the key with which the desired value should be associated
- classTag
an implicit
ClassTag
specifying the expected type for the desired value
-
def
getOrElse[V1 >: Any](key: String, default: ⇒ V1): V1
- Definition Classes
- MapLike → GenMapLike
-
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 throwsTestCanceledException
if either the key is not bound or is bound to an incompatible type.Returns the value bound to a key cast to the specified type
V
, or throwsTestCanceledException
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")
- key
the key with which the desired value should be associated
- classTag
an implicit
ClassTag
specifying the expected type for the desired value
-
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.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")
- key
the key with which the desired value should be associated
- default
a default value to return if the key is not found
- classTag
an implicit
ClassTag
specifying the expected type for the desired value
-
def
groupBy[K](f: ((String, Any)) ⇒ K): Map[K, ConfigMap]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
grouped(size: Int): Iterator[ConfigMap]
- Definition Classes
- IterableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
hashCode(): Int
- Definition Classes
- GenMapLike → AnyRef → Any
-
def
head: (String, Any)
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
headOption: Option[(String, Any)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
init: ConfigMap
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
inits: Iterator[ConfigMap]
- Definition Classes
- TraversableLike
-
def
isDefinedAt(key: String): Boolean
- Definition Classes
- MapLike → GenMapLike → PartialFunction
-
def
isEmpty: Boolean
- Definition Classes
- MapLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isTraversableAgain: Boolean
- Definition Classes
- TraversableLike → GenTraversableLike → GenTraversableOnce
-
def
iterator: Iterator[(String, Any)]
- Definition Classes
- ConfigMap → MapLike → IterableLike → GenIterableLike
-
def
keySet: Set[String]
- Definition Classes
- MapLike → MapLike → GenMapLike
-
def
keys: Iterable[String]
- Definition Classes
- MapLike → GenMapLike
- Annotations
- @migration
- Migration
(Changed in version 2.8.0)
keys
returnsIterable[K]
rather thanIterator[K]
.
-
def
keysIterator: Iterator[String]
- Definition Classes
- MapLike → GenMapLike
-
def
last: (String, Any)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lastOption: Option[(String, Any)]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lift: (String) ⇒ Option[Any]
- Definition Classes
- PartialFunction
-
def
map[B, That](f: ((String, Any)) ⇒ B)(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
mapValues[W](f: (Any) ⇒ W): Map[String, W]
- Definition Classes
- MapLike → MapLike → GenMapLike
-
def
max[B >: (String, Any)](implicit cmp: Ordering[B]): (String, Any)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: ((String, Any)) ⇒ B)(implicit cmp: Ordering[B]): (String, Any)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: (String, Any)](implicit cmp: Ordering[B]): (String, Any)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: ((String, Any)) ⇒ B)(implicit cmp: Ordering[B]): (String, Any)
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: Builder[(String, Any), ConfigMap]
- Attributes
- protected[this]
- Definition Classes
- MapLike → TraversableLike → HasNewBuilder
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
orElse[A1 <: String, B1 >: Any](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
-
def
par: ParMap[String, Any]
- Definition Classes
- Parallelizable
-
def
parCombiner: Combiner[(String, Any), ParMap[String, Any]]
- Attributes
- protected[this]
- Definition Classes
- MapLike → MapLike → TraversableLike → Parallelizable
-
def
partition(p: ((String, Any)) ⇒ Boolean): (ConfigMap, ConfigMap)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
product[B >: (String, Any)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduce[A1 >: (String, Any)](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: (String, Any)](op: (B, (String, Any)) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: (String, Any)](op: (B, (String, Any)) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: (String, Any)](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: (String, Any)](op: ((String, Any), B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: (String, Any)](op: ((String, Any), B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
repr: ConfigMap
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reversed: List[(String, Any)]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
runWith[U](action: (Any) ⇒ U): (String) ⇒ Boolean
- Definition Classes
- PartialFunction
-
def
sameElements[B >: (String, Any)](that: GenIterable[B]): Boolean
- Definition Classes
- IterableLike → GenIterableLike
-
def
scan[B >: (String, Any), That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, (String, Any)) ⇒ B)(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: ((String, Any), B) ⇒ B)(implicit bf: CanBuildFrom[ConfigMap, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
- Annotations
- @migration
- Migration
(Changed in version 2.9.0) The behavior of
scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
-
def
seq: Map[String, Any]
- Definition Classes
- Map → Map → GenMap → GenMapLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
size: Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- GenTraversableOnce
-
def
slice(from: Int, until: Int): ConfigMap
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
sliding(size: Int, step: Int): Iterator[ConfigMap]
- Definition Classes
- IterableLike
-
def
sliding(size: Int): Iterator[ConfigMap]
- Definition Classes
- IterableLike
-
def
span(p: ((String, Any)) ⇒ Boolean): (ConfigMap, ConfigMap)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (ConfigMap, ConfigMap)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
stringPrefix: String
- Definition Classes
- MapLike → TraversableLike → GenTraversableLike
-
def
sum[B >: (String, Any)](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: ConfigMap
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
tails: Iterator[ConfigMap]
- Definition Classes
- TraversableLike
-
def
take(n: Int): ConfigMap
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
takeRight(n: Int): ConfigMap
- Definition Classes
- IterableLike
-
def
takeWhile(p: ((String, Any)) ⇒ Boolean): ConfigMap
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
thisCollection: Iterable[(String, Any)]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, (String, Any), Col[(String, Any)]]): Col[(String, Any)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: (String, Any)](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[E >: (String, Any)]: Buffer[E]
- Definition Classes
- MapLike → TraversableOnce → GenTraversableOnce
-
def
toCollection(repr: ConfigMap): Iterable[(String, Any)]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
toIndexedSeq: IndexedSeq[(String, Any)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[(String, Any)]
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[(String, Any)]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toList: List[(String, Any)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[(String, Any), (T, U)]): Map[T, U]
- Definition Classes
- Map → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toSeq: Seq[(String, Any)]
- Definition Classes
- MapLike → TraversableOnce → GenTraversableOnce
-
def
toSet[B >: (String, Any)]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[(String, Any)]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- MapLike → TraversableLike → Function1 → AnyRef → Any
-
def
toTraversable: Traversable[(String, Any)]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: Vector[(String, Any)]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
transform[W, That](f: (String, Any) ⇒ W)(implicit bf: CanBuildFrom[ConfigMap, (String, W), That]): That
- Definition Classes
- MapLike
-
def
transpose[B](implicit asTraversable: ((String, Any)) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
- Annotations
- @migration
- Migration
(Changed in version 2.9.0)
transpose
throws anIllegalArgumentException
if collections are not uniformly sized.
-
def
unzip[A1, A2](implicit asPair: ((String, Any)) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: ((String, Any)) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- GenericTraversableTemplate
-
def
updated[V1 >: Any](key: String, value: V1): Map[String, V1]
- Definition Classes
- MapLike → MapLike
-
def
values: Iterable[Any]
- Definition Classes
- MapLike → GenMapLike
- Annotations
- @migration
- Migration
(Changed in version 2.8.0)
values
returnsIterable[V]
rather thanIterator[V]
.
-
def
valuesIterator: Iterator[Any]
- Definition Classes
- MapLike → GenMapLike
-
def
view(from: Int, until: Int): IterableView[(String, Any), ConfigMap]
- Definition Classes
- IterableLike → TraversableLike
-
def
view: IterableView[(String, Any), ConfigMap]
- Definition Classes
- IterableLike → TraversableLike
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withDefault[V1 >: Any](d: (String) ⇒ V1): Map[String, V1]
- Definition Classes
- Map
-
def
withDefaultValue[V1 >: Any](d: V1): Map[String, V1]
- Definition Classes
- Map
-
def
withFilter(p: ((String, Any)) ⇒ Boolean): FilterMonadic[(String, Any), ConfigMap]
- Definition Classes
- TraversableLike → FilterMonadic
-
def
zip[A1 >: (String, Any), B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[ConfigMap, (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipAll[B, A1 >: (String, Any), That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[ConfigMap, (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipWithIndex[A1 >: (String, Any), That](implicit bf: CanBuildFrom[ConfigMap, (A1, Int), That]): That
- Definition Classes
- IterableLike → GenIterableLike