Packages

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
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Containing
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. 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

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

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

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

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

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

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

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

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

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

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

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

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

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

  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  23. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped