object Containing
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
- Alphabetic
- By Inheritance
- Containing
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
implicit
def
containingNatureOfArray[E](implicit equality: Equality[E]): Containing[Array[E]]
Implicit to support
Containing
nature ofArray
.Implicit to support
Containing
nature ofArray
.- E
the type of the element in the
Array
- equality
Equality
type class that is used to check equality of element in theArray
- returns
Containing[Array[E]]
that supportsArray
in relevantcontain
syntax
-
implicit
def
containingNatureOfEvery[E](implicit equality: Equality[E]): Containing[Every[E]]
Implicit to support
Containing
nature ofEvery
.Implicit to support
Containing
nature ofEvery
.- E
the type of the element in the
Every
- equality
Equality
type class that is used to check equality of element in theEvery
- returns
Containing[Every[E]]
that supportsEvery
in relevantcontain
syntax
-
implicit
def
containingNatureOfGenTraversable[E, TRAV[e] <: GenTraversable[e]](implicit equality: Equality[E]): Containing[TRAV[E]]
Implicit to support
Containing
nature ofGenTraversable
.Implicit to support
Containing
nature ofGenTraversable
.- 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 theGenTraversable
- returns
Containing[TRAV[E]]
that supportsGenTraversable
in relevantcontain
syntax
-
implicit
def
containingNatureOfJavaCollection[E, JCOL[e] <: Collection[e]](implicit equality: Equality[E]): Containing[JCOL[E]]
Implicit to support
Containing
nature ofjava.util.Collection
.Implicit to support
Containing
nature ofjava.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 thejava.util.Collection
- returns
Containing[JCOL[E]]
that supportsjava.util.Collection
in relevantcontain
syntax
-
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 ofjava.util.Map
.Implicit to support
Containing
nature ofjava.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 thejava.util.Map
- returns
Containing[JMAP[K, V]]
that supportsjava.util.Map
in relevantcontain
syntax
-
implicit
def
containingNatureOfOption[E, OPT[e] <: Option[e]](implicit equality: Equality[E]): Containing[OPT[E]]
Implicit to support
Containing
nature ofscala.Option
.Implicit to support
Containing
nature ofscala.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 theOption
- returns
Containing[OPT[E]]
that supportsscala.Option
in relevantcontain
syntax
-
implicit
def
containingNatureOfString(implicit equality: Equality[Char]): Containing[String]
Implicit to support
Containing
nature ofString
.Implicit to support
Containing
nature ofString
.- equality
Equality
type class that is used to check equality ofChar
in theString
- returns
Containing[String]
that supportsString
in relevantcontain
syntax
-
implicit
def
convertEqualityToArrayContaining[E](equality: Equality[E]): Containing[Array[E]]
Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeArray[E]
.Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeArray[E]
. This is required to support the explicitEquality
syntax, for example:(Array("hi") should contain oneOf ("HI")) (after being lowerCased)
(after being lowerCased)
will returns anEquality[String]
and this implicit conversion will convert it intoContaining[Array[String]]
.- E
type of elements in the
Array
- equality
Equality
of typeE
- returns
Containing
of typeArray[E]
-
implicit
def
convertEqualityToEveryContaining[E](equality: Equality[E]): Containing[Every[E]]
Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeEvery[E]
.Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeEvery[E]
. This is required to support the explicitEquality
syntax, for example:(Every("hi", "he", "ho") should contain oneOf ("HI")) (after being lowerCased)
(after being lowerCased)
will returns anEquality[String]
and this implicit conversion will convert it intoContaining[Every[String]]
.- E
type of elements in the
Every
- equality
Equality
of typeE
- returns
Containing
of typeEvery[E]
-
implicit
def
convertEqualityToGenTraversableContaining[E, TRAV[e] <: GenTraversable[e]](equality: Equality[E]): Containing[TRAV[E]]
Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeTRAV[E]
, whereTRAV
is a subtype ofGenTraversable
.Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeTRAV[E]
, whereTRAV
is a subtype ofGenTraversable
. This is required to support the explicitEquality
syntax, for example:(List("hi") should contain oneOf ("HI")) (after being lowerCased)
(after being lowerCased)
will returns anEquality[String]
and this implicit conversion will convert it intoContaining[List[String]]
.- E
type of elements in the
GenTraversable
- TRAV
subtype of
GenTraversable
- equality
Equality
of typeE
- returns
Containing
of typeTRAV[E]
-
implicit
def
convertEqualityToJavaCollectionContaining[E, JCOL[e] <: Collection[e]](equality: Equality[E]): Containing[JCOL[E]]
Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeJCOL[E]
, whereJCOL
is a subtype ofjava.util.Collection
.Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeJCOL[E]
, whereJCOL
is a subtype ofjava.util.Collection
. This is required to support the explicitEquality
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 anEquality[String]
and this implicit conversion will convert it intoContaining[java.util.ArrayList[String]]
.- E
type of elements in the
java.util.Collection
- JCOL
subtype of
java.util.Collection
- equality
Equality
of typeE
- returns
Containing
of typeJCOL[E]
-
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 typejava.util.Map.Entry[K, V]
intoContaining
of typeJMAP[K, V]
, whereJMAP
is a subtype ofjava.util.Map
.Implicit conversion that converts an
Equality
of typejava.util.Map.Entry[K, V]
intoContaining
of typeJMAP[K, V]
, whereJMAP
is a subtype ofjava.util.Map
. This is required to support the explicitEquality
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 anjava.util.Map.Entry[Int, String]
and this implicit conversion will convert it intoContaining[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 typejava.util.Map.Entry[K, V]
- returns
Containing
of typeJMAP[K, V]
-
implicit
def
convertEqualityToOptionContaining[E, OPT[e] <: Option[e]](equality: Equality[E]): Containing[OPT[E]]
Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeOPT[E]
, whereOPT
is a subtype ofscala.Option
.Implicit conversion that converts an
Equality
of typeE
intoContaining
of typeOPT[E]
, whereOPT
is a subtype ofscala.Option
. This is required to support the explicitEquality
syntax, for example:(Some("hi") should contain oneOf ("HI")) (after being lowerCased)
(after being lowerCased)
will returns anEquality[String]
and this implicit conversion will convert it intoContaining[Some[String]]
.- E
type of elements in the
scala.Option
- OPT
subtype of
scala.Option
- equality
Equality
of typeE
- returns
Containing
of typeOPT[E]
-
implicit
def
convertEqualityToStringContaining(equality: Equality[Char]): Containing[String]
Implicit conversion that converts an
Equality
of typeChar
intoContaining
of typeString
.Implicit conversion that converts an
Equality
of typeChar
intoContaining
of typeString
. This is required to support the explicitEquality
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 anEquality[Char]
and this implicit conversion will convert it intoContaining[String]
.- equality
Equality
of typeChar
- returns
Containing
of typeString
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )