Object/Trait

org.scalatest.enablers

ValueMapping

Related Docs: trait ValueMapping | package enablers

Permalink

object ValueMapping

Companion object for ValueMapping that provides implicit implementations for scala.collection.GenMap and java.util.Map.

Source
ValueMapping.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ValueMapping
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. implicit def convertEqualityToGenMapValueMapping[K, V, MAP[k, v] <: GenMap[k, v]](equality: Equality[V]): ValueMapping[MAP[K, V]]

    Permalink

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

    Implicit conversion that converts an Equality of type V into ValueMapping 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:

    (Map(1 -> "one") should contain value "ONE") (after being lowerCased)
    

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

    returns

    ValueMapping of type MAP[K, V]

  7. implicit def convertEqualityToJavaMapValueMapping[K, V, JMAP[k, v] <: Map[k, v]](equality: Equality[V]): ValueMapping[JMAP[K, V]]

    Permalink

    Implicit conversion that converts an Equality of type V into ValueMapping of type JMAP[K, V], where JMAP is a subtype of java.util.Map.

    Implicit conversion that converts an Equality of type V into ValueMapping 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")
    (javaMap should contain value "ONE") (after being lowerCased)
    

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

    returns

    ValueMapping of type JMAP[K, V]

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. implicit def valueMappingNatureOfGenMap[K, V, MAP[k, v] <: GenMap[k, v]](implicit equality: Equality[V]): ValueMapping[MAP[K, V]]

    Permalink

    Enable ValueMapping implementation for scala.collection.GenMap.

    Enable ValueMapping implementation for 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 value in the scala.collection.GenMap

    returns

    ValueMapping[MAP[K, V]] that supports scala.collection.GenMap in contain value syntax

  20. implicit def valueMappingNatureOfJavaMap[K, V, JMAP[k, v] <: Map[k, v]](implicit equality: Equality[V]): ValueMapping[JMAP[K, V]]

    Permalink

    Enable ValueMapping implementation for java.util.Map.

    Enable ValueMapping implementation for 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 value in the java.util.Map

    returns

    ValueMapping[JMAP[K, V]] that supports java.util.Map in contain value syntax

  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped