AggregatingJavaImplicits

org.scalatest.enablers.AggregatingJavaImplicits

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Implicits

Implicits

implicit def aggregatingNatureOfJavaCollection[E, JCOL <: (Collection)](implicit equality: Equality[E]): Aggregating[JCOL[E]]

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

Implicit to support Aggregating 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

Value parameters

equality

Equality type class that is used to check equality of element in the java.util.Collection

Attributes

Returns

Aggregating[JCOL[E]] that supports java.util.Collection in relevant contain syntax

implicit def aggregatingNatureOfJavaMap[K, V, JMAP <: (Map)](implicit equality: Equality[Entry[K, V]]): Aggregating[JMAP[K, V]]

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

Implicit to support Aggregating 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

Value parameters

equality

Equality type class that is used to check equality of entry in the java.util.Map

Attributes

Returns

Aggregating[JMAP[K, V]] that supports java.util.Map in relevant contain syntax

implicit def convertEqualityToJavaCollectionAggregating[E, JCOL <: (Collection)](equality: Equality[E]): Aggregating[JCOL[E]]

Implicit conversion that converts an Equality of type E into Aggregating of type JCOL[E], where JCOL is a subtype of java.util.Collection. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type E into Aggregating of type JCOL[E], where JCOL is a subtype of java.util.Collection. This is required to support the explicit Equality syntax, for example:

val javaList = new java.util.ArrayList[String]()
javaList.add("hi")
(javaList should contain ("HI")) (after being lowerCased)

(after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Aggregating[java.util.ArrayList[String]].

Type parameters

E

type of elements in the java.util.Collection

JCOL

subtype of java.util.Collection

Value parameters

equality

Equality of type E

Attributes

Returns

Aggregating of type JCOL[E]

implicit def convertEqualityToJavaMapAggregating[K, V, JMAP <: (Map)](equality: Equality[Entry[K, V]]): Aggregating[JMAP[K, V]]

Implicit conversion that converts an Equality of type java.util.Map.Entry[K, V] into Aggregating of type JMAP[K, V], where JMAP is a subtype of java.util.Map. This is required to support the explicit Equality syntax, for example:

Implicit conversion that converts an Equality of type java.util.Map.Entry[K, V] into Aggregating of type JMAP[K, V], where JMAP is a subtype of java.util.Map. This is required to support the explicit Equality syntax, for example:

val javaMap = new java.util.HashMap[Int, String]()
javaMap.put(1, "one")
// lowerCased needs to be implemented as Normalization[java.util.Map.Entry[K, V]]
(javaMap should contain (Entry(1, "ONE"))) (after being lowerCased)

(after being lowerCased) will returns an java.util.Map.Entry[Int, String] and this implicit conversion will convert it into Aggregating[java.util.HashMap[Int, String]].

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

Value parameters

equality

Equality of type java.util.Map.Entry[K, V]

Attributes

Returns

Aggregating of type JMAP[K, V]