Collecting

org.scalatest.enablers.Collecting
See theCollecting companion trait
object Collecting

Companion object for Collecting that provides implicit implementations for the following types:

  • org.scalactic.ColCompatHelper.Iterable

  • Array

  • java.util.Collection

  • java.util.Map

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Collecting.type

Members list

Implicits

Implicits

implicit def collectingNatureOfArray[E]: Collecting[E, Array[E]]

Implicit to support Collecting nature of Array.

Implicit to support Collecting nature of Array.

Type parameters

E

the type of the element in the Array

Attributes

Returns

Collecting[E, Array[E]] that supports Array in loneElement syntax

implicit def collectingNatureOfEvery[E, EVERY <: (Every)]: Collecting[E, EVERY[E]]

Implicit to support Collecting nature of Every.

Implicit to support Collecting nature of Every.

Type parameters

E

the type of the element in the Every

EVERY

any subtype of Every

Attributes

Returns

Collecting[EVERY[E]] that supports Every in loneElement syntax

implicit def collectingNatureOfIterable[E, ITR <: (Iterable)]: Collecting[E, ITR[E]]

Implicit to support Collecting nature of Iterable.

Implicit to support Collecting nature of Iterable.

Type parameters

E

the type of the element in the Iterable

ITR

any subtype of Iterable

Attributes

Returns

Collecting[E, TRAV[E]] that supports Iterable in loneElement syntax

implicit def collectingNatureOfJavaCollection[E, JCOL <: (Collection)]: Collecting[E, JCOL[E]]

Implicit to support Collecting nature of java.util.Collection.

Implicit to support Collecting nature of java.util.Collection.

Type parameters

E

the type of the element in the java.util.Collection

JCOL

any subtype of java.util.Collection

Attributes

Returns

Collecting[E, JCOL[E]] that supports java.util.Collection in loneElement syntax

implicit def collectingNatureOfJavaMap[K, V, JMAP <: (Map)]: Collecting[Entry[K, V], JMAP[K, V]]

Implicit to support Collecting nature of java.util.Map.

Implicit to support Collecting nature of java.util.Map.

Type parameters

JMAP

any subtype of java.util.Map

K

the type of the key in the java.util.Map

V

the type of the value in the java.util.Map

Attributes

Returns

Collecting[org.scalatest.Entry[K, V], JMAP[K, V]] that supports java.util.Map in loneElement syntax

implicit def collectingNatureOfString: Collecting[Char, String]

Implicit to support Collecting nature of String.

Implicit to support Collecting nature of String.

Attributes

Returns

Collecting[Char, String] that supports String in loneElement syntax