Companion object for ValueMapping that provides implicit implementations for scala.collection.GenMap and java.util.Map.
- Companion:
- class
Implicits
Implicits
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:
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]].
- 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 typeV
- Returns:
ValueMappingof typeMAP[K, V]
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:
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]].
- 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 typeV
- Returns:
ValueMappingof typeJMAP[K, V]
Enable ValueMapping implementation for scala.collection.GenMap.
Enable ValueMapping implementation for 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 value in thescala.collection.GenMap
- Returns:
ValueMapping[MAP[K, V]]that supportsscala.collection.GenMapincontain valuesyntax
Enable ValueMapping implementation for java.util.Map.
Enable ValueMapping implementation for 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 value in thejava.util.Map
- Returns:
ValueMapping[JMAP[K, V]]that supportsjava.util.Mapincontainvaluesyntax