Packages

t

org.scalatest.enablers

AggregatingJavaImplicits

trait AggregatingJavaImplicits extends AggregatingImpls

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AggregatingJavaImplicits
  2. AggregatingImpls
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. implicit def aggregatingNatureOfJavaCollection[E, JCOL[e] <: Collection[e]](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.

    E

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

    JCOL

    any subtype of java.util.Collection

    equality

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

    returns

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

  2. implicit def aggregatingNatureOfJavaMap[K, V, JMAP[k, v] <: Map[k, v]](implicit equality: Equality[java.util.Map.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.

    K

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

    V

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

    JMAP

    any subtype of java.util.Map

    equality

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

    returns

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

  3. implicit def convertEqualityToJavaCollectionAggregating[E, JCOL[e] <: Collection[e]](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.

    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]].

    E

    type of elements in the java.util.Collection

    JCOL

    subtype of java.util.Collection

    equality

    Equality of type E

    returns

    Aggregating of type JCOL[E]

  4. implicit def convertEqualityToJavaMapAggregating[K, V, JMAP[k, v] <: Map[k, v]](equality: Equality[java.util.Map.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.

    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]].

    K

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

    V

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

    JMAP

    any subtype of java.util.Map

    equality

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

    returns

    Aggregating of type JMAP[K, V]