Collecting

object Collecting

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

  • scala.collection.GenTraversable

  • Array

  • java.util.Collection

  • java.util.Map

Companion:
class
class Object
trait Matchable
class Any

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

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

Returns:

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

implicit def collectingNatureOfGenTraversable[E, TRAV <: (Iterable)]: Collecting[E, TRAV[E]]

Implicit to support Collecting nature of GenTraversable.

Implicit to support Collecting nature of GenTraversable.

Type parameters:
E

the type of the element in the GenTraversable

TRAV

any subtype of GenTraversable

Returns:

Collecting[E, TRAV[E]] that supports GenTraversable 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

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

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.

Returns:

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