Packages

object KeyMapping

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

Source
KeyMapping.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KeyMapping
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. implicit def convertEqualityToGenMapKeyMapping[K, V, MAP[k, v] <: GenMap[k, v]](equality: Equality[K]): KeyMapping[MAP[K, V]]

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

    Implicit conversion that converts an Equality of type K into KeyMapping 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("one" -> 1) should contain key "ONE") (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into KeyMapping[Map[String, Int]].

    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 K

    returns

    KeyMapping of type MAP[K, V]

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

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

    Implicit conversion that converts an Equality of type K into KeyMapping 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[String, Int]()
    javaMap.put("one", 1)
    (javaMap should contain key "ONE") (after being lowerCased)
    

    (after being lowerCased) will returns an Equality[String] and this implicit conversion will convert it into KeyMapping[java.util.HashMap[String, Int]].

    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 K

    returns

    KeyMapping of type JMAP[K, V]

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. implicit def keyMappingNatureOfGenMap[K, V, MAP[k, v] <: GenMap[k, v]](implicit equality: Equality[K]): KeyMapping[MAP[K, V]]

    Enable KeyMapping implementation for scala.collection.GenMap.

    Enable KeyMapping 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 key in the scala.collection.GenMap

    returns

    KeyMapping[MAP[K, V]] that supports scala.collection.GenMap in contain key syntax

  15. implicit def keyMappingNatureOfJavaMap[K, V, JMAP[k, v] <: Map[k, v]](implicit equality: Equality[K]): KeyMapping[JMAP[K, V]]

    Enable KeyMapping implementation for java.util.Map.

    Enable KeyMapping 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 key in the java.util.Map

    returns

    KeyMapping[JMAP[K, V]] that supports java.util.Map in contain key syntax

  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped