Class

com.daodecode.scalaj.collection

DeepMapAsJavaMap

Related Doc: package collection

Permalink

implicit final class DeepMapAsJavaMap[A, B] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeepMapAsJavaMap
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeepMapAsJavaMap(scalaMap: Map[A, B])

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def deepAsJava[C, D](implicit keyConverter: JConverter[A, C], valueConverter: JConverter[B, D]): collection.JMap[C, D]

    Permalink

    Converts given Scala scala.collection.Map to Java JMap.

    Converts given Scala scala.collection.Map to Java JMap. Keys and values inside map are converted using given implicit converters, which allow to convert nested Scala collections and primitives. If given map is mutable, then returned Java map is mutable as well.

    C

    New type of Java map key

    D

    New type of Java map value

    keyConverter

    Implicit converter to convert from A to C

    valueConverter

    Implicit converter to convert from B to D

    returns

    Java map wrapper around given map if given map keys and values are primitives or anything but supported Scala collections. Wrapper around new map otherwise. Example:

    scala> val m = Map(3L -> Set('3'))
    m: scala.collection.immutable.Map[Long,scala.collection.immutable.Set[Char]] = Map(3 -> Set(3))
    scala> m.deepAsJava
    res0: com.daodecode.scalaj.collection.package.JMap[com.daodecode.scalaj.collection.JLong,com.daodecode.scalaj.collection.JSet[com.daodecode.scalaj.collection.JChar]] = {3=[3]}
  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. val scalaMap: Map[A, B]

    Permalink
  9. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped