Supertrait for typeclasses that enable loneElement
and inspectors syntax
for collections.
Companion object for Collecting
that provides implicit implementations for the following types:
Companion object for Collecting
that provides implicit implementations for the following types:
scala.collection.GenTraversable
Array
java.util.Collection
java.util.Map
Supertrait for typeclasses that enable
loneElement
and inspectors syntax for collections.A
Collecting[E, C]
provides access to the "collecting nature" of typeC
in such a way thatloneElement
syntax can be used with typeC
. AC
can be any type of "collecting", a type that in some way collects or brings together elements of typeE
. ScalaTest provides implicit implementations for several types. You can enable thecontain
matcher syntax on your own typeU
by defining anCollecting[E, U]
for the type and making it available implicitly.ScalaTest provides implicit
Collecting
instances forscala.collection.GenTraversable
,Array
,java.util.Collection
andjava.util.Map
in theCollecting
companion object.