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
- Companion:
- class
Implicits
Inherited implicits
Implicit to support Containing nature of Array.
Implicit to support Containing nature of Array.
- Type parameters:
- E
the type of the element in the
Array
- Value parameters:
- equality
Equalitytype class that is used to check equality of element in theArray
- Returns:
Containing[Array[E]]that supportsArrayin relevantcontainsyntax- Inherited from:
- ContainingStandardImplicits
Implicit to support Containing nature of Every.
Implicit to support Containing nature of Every.
- Type parameters:
- E
the type of the element in the
Every
- Value parameters:
- equality
Equalitytype class that is used to check equality of element in theEvery
- Returns:
Containing[Every[E]]that supportsEveryin relevantcontainsyntax- Inherited from:
- ContainingStandardImplicits
Implicit to support Containing nature of GenTraversable.
Implicit to support Containing nature of GenTraversable.
- Type parameters:
- E
the type of the element in the
GenTraversable- TRAV
any subtype of
GenTraversable
- Value parameters:
- equality
Equalitytype class that is used to check equality of element in theGenTraversable
- Returns:
Containing[TRAV[E]]that supportsGenTraversablein relevantcontainsyntax- Inherited from:
- ContainingStandardImplicits
Implicit to support Containing nature of java.util.Collection.
Implicit to support Containing 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
Equalitytype class that is used to check equality of element in thejava.util.Collection
- Returns:
Containing[JCOL[E]]that supportsjava.util.Collectionin relevantcontainsyntax- Inherited from:
- JavaContainingImplicits
Implicit to support Containing nature of java.util.Map.
Implicit to support Containing 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
Equalitytype class that is used to check equality of entry in thejava.util.Map
- Returns:
Containing[JMAP[K, V]]that supportsjava.util.Mapin relevantcontainsyntax- Inherited from:
- JavaContainingImplicits
Implicit to support Containing nature of scala.collection.GenMap.
Implicit to support Containing nature of scala.collection.GenMap.
- Type parameters:
- K
the type of the key in the
scala.collection.GenMap- MAP
any subtype of
scala.collection.GenMap- V
the type of the value in the
scala.collection.GenMap
- Value parameters:
- equality
Equalitytype class that is used to check equality of entry in thescala.collection.GenMap
- Returns:
Containing[MAP[K, V]]that supportsscala.collection.GenMapin relevantcontainsyntax- Inherited from:
- ContainingHighPriorityImplicits
Implicit to support Containing nature of scala.Option.
Implicit to support Containing nature of scala.Option.
- Type parameters:
- E
the type of the element in the
scala.Option- OPT
any subtype of
scala.Option
- Value parameters:
- equality
Equalitytype class that is used to check equality of element in theOption
- Returns:
Containing[OPT[E]]that supportsscala.Optionin relevantcontainsyntax- Inherited from:
- ContainingStandardImplicits
Implicit to support Containing nature of String.
Implicit to support Containing nature of String.
- Value parameters:
- equality
Equalitytype class that is used to check equality ofCharin theString
- Returns:
Containing[String]that supportsStringin relevantcontainsyntax- Inherited from:
- ContainingStandardImplicits
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:
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]].
- Type parameters:
- E
type of elements in the
Array
- Value parameters:
- equality
Equalityof typeE
- Returns:
Containingof typeArray[E]- Inherited from:
- ContainingStandardImplicits
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:
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]].
- Type parameters:
- E
type of elements in the
Every
- Value parameters:
- equality
Equalityof typeE
- Returns:
Containingof typeEvery[E]- Inherited from:
- ContainingStandardImplicits
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:
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]].
- Type parameters:
- E
type of elements in the
GenTraversable- TRAV
subtype of
GenTraversable
- Value parameters:
- equality
Equalityof typeE
- Returns:
Containingof typeTRAV[E]- Inherited from:
- ContainingStandardImplicits
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:
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]].
- Type parameters:
- E
type of elements in the
java.util.Collection- JCOL
subtype of
java.util.Collection
- Value parameters:
- equality
Equalityof typeE
- Returns:
Containingof typeJCOL[E]- Inherited from:
- JavaContainingImplicits
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:
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]].
- 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
Equalityof typejava.util.Map.Entry[K, V]
- Returns:
Containingof typeJMAP[K, V]- Inherited from:
- JavaContainingImplicits
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:
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]].
- Type parameters:
- K
the type of the key in the
scala.collection.GenMap- MAP
any subtype of
scala.collection.GenMap- V
the type of the value in the
scala.collection.GenMap
- Value parameters:
- equality
Equalityof typeTuple2[K, V]
- Returns:
Containingof typeMAP[K, V]- Inherited from:
- ContainingHighPriorityImplicits
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:
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]].
- Type parameters:
- E
type of elements in the
scala.Option- OPT
subtype of
scala.Option
- Value parameters:
- equality
Equalityof typeE
- Returns:
Containingof typeOPT[E]- Inherited from:
- ContainingStandardImplicits
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:
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].
- Value parameters:
- equality
Equalityof typeChar
- Returns:
Containingof typeString- Inherited from:
- ContainingStandardImplicits