Packages

object Containing extends ContainingHighPriorityImplicits

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

  • scala.collection.GenTraversable
  • String
  • Array
  • scala.Option
  • java.util.Collection
  • java.util.Map
Source
Containing.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Containing
  2. ContainingHighPriorityImplicits
  3. ContainingStandardImplicits
  4. JavaContainingImplicits
  5. ContainingImpls
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. implicit def containingNatureOfArray[E](implicit equality: Equality[E]): Containing[Array[E]]

    Implicit to support Containing nature of Array.

    Implicit to support Containing nature of Array.

    E

    the type of the element in the Array

    equality

    Equality type class that is used to check equality of element in the Array

    returns

    Containing[Array[E]] that supports Array in relevant contain syntax

    Definition Classes
    ContainingStandardImplicits
  2. implicit def containingNatureOfEvery[E](implicit equality: Equality[E]): Containing[Every[E]]

    Implicit to support Containing nature of Every.

    Implicit to support Containing nature of Every.

    E

    the type of the element in the Every

    equality

    Equality type class that is used to check equality of element in the Every

    returns

    Containing[Every[E]] that supports Every in relevant contain syntax

    Definition Classes
    ContainingStandardImplicits
  3. implicit def containingNatureOfGenTraversable[E, TRAV[e] <: GenTraversable[e]](implicit equality: Equality[E]): Containing[TRAV[E]]

    Implicit to support Containing nature of GenTraversable.

    Implicit to support Containing nature of GenTraversable.

    E

    the type of the element in the GenTraversable

    TRAV

    any subtype of GenTraversable

    equality

    Equality type class that is used to check equality of element in the GenTraversable

    returns

    Containing[TRAV[E]] that supports GenTraversable in relevant contain syntax

    Definition Classes
    ContainingStandardImplicits
  4. implicit def containingNatureOfJavaCollection[E, JCOL[e] <: Collection[e]](implicit equality: Equality[E]): Containing[JCOL[E]]

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

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

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

    Definition Classes
    JavaContainingImplicits
  5. implicit def containingNatureOfJavaMap[K, V, JMAP[k, v] <: Map[k, v]](implicit equality: Equality[java.util.Map.Entry[K, V]]): Containing[JMAP[K, V]]

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

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

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

    Definition Classes
    JavaContainingImplicits
  6. implicit def containingNatureOfMap[K, V, MAP[k, v] <: GenMap[k, v]](implicit equality: Equality[(K, V)]): Containing[MAP[K, V]]

    Implicit to support Containing nature of scala.collection.GenMap.

    Implicit to support Containing nature of scala.collection.GenMap.

    K

    the type of the key in the scala.collection.GenMap

    V

    the type of the value in the scala.collection.GenMap

    MAP

    any subtype of scala.collection.GenMap

    equality

    Equality type class that is used to check equality of entry in the scala.collection.GenMap

    returns

    Containing[MAP[K, V]] that supports scala.collection.GenMap in relevant contain syntax

    Definition Classes
    ContainingHighPriorityImplicits
  7. implicit def containingNatureOfOption[E, OPT[e] <: Option[e]](implicit equality: Equality[E]): Containing[OPT[E]]

    Implicit to support Containing nature of scala.Option.

    Implicit to support Containing nature of scala.Option.

    E

    the type of the element in the scala.Option

    OPT

    any subtype of scala.Option

    equality

    Equality type class that is used to check equality of element in the Option

    returns

    Containing[OPT[E]] that supports scala.Option in relevant contain syntax

    Definition Classes
    ContainingStandardImplicits
  8. implicit def containingNatureOfString(implicit equality: Equality[Char]): Containing[String]

    Implicit to support Containing nature of String.

    Implicit to support Containing nature of String.

    equality

    Equality type class that is used to check equality of Char in the String

    returns

    Containing[String] that supports String in relevant contain syntax

    Definition Classes
    ContainingStandardImplicits
  9. implicit def convertEqualityToArrayContaining[E](equality: Equality[E]): Containing[Array[E]]

    Implicit conversion that converts an Equality of type E into Containing of type Array[E].

    Implicit conversion that converts an Equality of type E into Containing of type Array[E]. This is required to support the explicit Equality syntax, for example:

    (Array("hi") should contain oneOf ("HI")) (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Containing[Array[String]].

    E

    type of elements in the Array

    equality

    Equality of type E

    returns

    Containing of type Array[E]

    Definition Classes
    ContainingStandardImplicits
  10. implicit def convertEqualityToEveryContaining[E](equality: Equality[E]): Containing[Every[E]]

    Implicit conversion that converts an Equality of type E into Containing of type Every[E].

    Implicit conversion that converts an Equality of type E into Containing of type Every[E]. This is required to support the explicit Equality syntax, for example:

    (Every("hi", "he", "ho") should contain oneOf ("HI")) (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Containing[Every[String]].

    E

    type of elements in the Every

    equality

    Equality of type E

    returns

    Containing of type Every[E]

    Definition Classes
    ContainingStandardImplicits
  11. implicit def convertEqualityToGenTraversableContaining[E, TRAV[e] <: GenTraversable[e]](equality: Equality[E]): Containing[TRAV[E]]

    Implicit conversion that converts an Equality of type E into Containing of type TRAV[E], where TRAV is a subtype of GenTraversable.

    Implicit conversion that converts an Equality of type E into Containing of type TRAV[E], where TRAV is a subtype of GenTraversable. This is required to support the explicit Equality syntax, for example:

    (List("hi") should contain oneOf ("HI")) (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Containing[List[String]].

    E

    type of elements in the GenTraversable

    TRAV

    subtype of GenTraversable

    equality

    Equality of type E

    returns

    Containing of type TRAV[E]

    Definition Classes
    ContainingStandardImplicits
  12. implicit def convertEqualityToJavaCollectionContaining[E, JCOL[e] <: Collection[e]](equality: Equality[E]): Containing[JCOL[E]]

    Implicit conversion that converts an Equality of type E into Containing of type JCOL[E], where JCOL is a subtype of java.util.Collection.

    Implicit conversion that converts an Equality of type E into Containing 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 oneOf ("HI")) (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Containing[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

    Containing of type JCOL[E]

    Definition Classes
    JavaContainingImplicits
  13. implicit def convertEqualityToJavaMapContaining[K, V, JMAP[k, v] <: Map[k, v]](equality: Equality[java.util.Map.Entry[K, V]]): Containing[JMAP[K, V]]

    Implicit conversion that converts an Equality of type java.util.Map.Entry[K, V] into Containing 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 Containing 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 Containing[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

    Containing of type JMAP[K, V]

    Definition Classes
    JavaContainingImplicits
  14. implicit def convertEqualityToMapContaining[K, V, MAP[k, v] <: GenMap[k, v]](equality: Equality[(K, V)]): Containing[MAP[K, V]]

    Implicit conversion that converts an Equality of type Tuple2[K, V] into Containing of type MAP[K, V], where MAP is a subtype of scala.collection.GenMap.

    Implicit conversion that converts an Equality of type Tuple2[K, V] into Containing of type MAP[K, V], where MAP is a subtype of scala.collection.GenMap. This is required to support the explicit Equality syntax, for example:

    val map = Map(1 -> "one")
    // lowerCased needs to be implemented as Normalization[Tuple2[K, V]]
    (map should contain ((1, "ONE"))) (after being lowerCased)
    

    (after being lowerCased) will returns an Tuple2[Int, String] and this implicit conversion will convert it into Containing[scala.collection.GenMap[Int, String]].

    K

    the type of the key in the scala.collection.GenMap

    V

    the type of the value in the scala.collection.GenMap

    MAP

    any subtype of scala.collection.GenMap

    equality

    Equality of type Tuple2[K, V]

    returns

    Containing of type MAP[K, V]

    Definition Classes
    ContainingHighPriorityImplicits
  15. implicit def convertEqualityToOptionContaining[E, OPT[e] <: Option[e]](equality: Equality[E]): Containing[OPT[E]]

    Implicit conversion that converts an Equality of type E into Containing of type OPT[E], where OPT is a subtype of scala.Option.

    Implicit conversion that converts an Equality of type E into Containing of type OPT[E], where OPT is a subtype of scala.Option. This is required to support the explicit Equality syntax, for example:

    (Some("hi") should contain oneOf ("HI")) (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into Containing[Some[String]].

    E

    type of elements in the scala.Option

    OPT

    subtype of scala.Option

    equality

    Equality of type E

    returns

    Containing of type OPT[E]

    Definition Classes
    ContainingStandardImplicits
  16. implicit def convertEqualityToStringContaining(equality: Equality[Char]): Containing[String]

    Implicit conversion that converts an Equality of type Char into Containing of type String.

    Implicit conversion that converts an Equality of type Char into Containing of type String. This is required to support the explicit Equality syntax, for example:

    // lowerCased needs to be implemented as Normalization[Char]
    ("hi hello" should contain oneOf ('E')) (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[Char] and this implicit conversion will convert it into Containing[String].

    equality

    Equality of type Char

    returns

    Containing of type String

    Definition Classes
    ContainingStandardImplicits