ImplicitConversions
Convenience for miscellaneous implicit conversions between Java and Scala collections API.
It is recommended to use explicit conversions provided by collection.JavaConverters instead. Implicit conversions may cause unexpected issues. Example:
import collection.convert.ImplicitConversions._
case class StringBox(s: String)
val m = Map(StringBox("one") -> "uno")
m.get("one")
The above example returns null
instead of producing a type error at compile-time. The map is implicitly converted to a java.util.Map
which provides a method get(x: AnyRef)
.
Attributes
- Deprecated
- true
- Source
- ImplicitConversions.scala
- Graph
-
- Supertypes
- Self type
-
ImplicitConversions.type
Members list
Implicits
Inherited implicits
Implicitly converts a Scala mutable Buffer
to a Java List
.
Implicitly converts a Scala mutable Buffer
to a Java List
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Collection
to an Scala Iterable
.
Implicitly converts a Java Collection
to an Scala Iterable
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala Iterable
to an immutable Java Collection
.
Implicitly converts a Scala Iterable
to an immutable Java Collection
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Dictionary
to a Scala mutable Map
.
Implicitly converts a Java Dictionary
to a Scala mutable Map
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala mutable Map
to a Java Dictionary
.
Implicitly converts a Scala mutable Map
to a Java Dictionary
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Enumeration
to a Scala Iterator
.
Implicitly converts a Java Enumeration
to a Scala Iterator
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala Iterator
to a Java Enumeration
.
Implicitly converts a Scala Iterator
to a Java Enumeration
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Iterable
to a Scala Iterable
.
Implicitly converts a Java Iterable
to a Scala Iterable
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala Iterable
to a Java Iterable
.
Implicitly converts a Scala Iterable
to a Java Iterable
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala Iterator
to a Java Iterator
.
Implicitly converts a Scala Iterator
to a Java Iterator
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Iterator
to a Scala Iterator
.
Implicitly converts a Java Iterator
to a Scala Iterator
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java List
to a Scala mutable Buffer
.
Implicitly converts a Java List
to a Scala mutable Buffer
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala mutable concurrent.Map
to a Java ConcurrentMap
.
Implicitly converts a Scala mutable concurrent.Map
to a Java ConcurrentMap
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala Map
to a Java Map
.
Implicitly converts a Scala Map
to a Java Map
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java ConcurrentMap
to a Scala mutable ConcurrentMap
.
Implicitly converts a Java ConcurrentMap
to a Scala mutable ConcurrentMap
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Map
to a Scala mutable Map
.
Implicitly converts a Java Map
to a Scala mutable Map
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala mutable Map
to a Java Map
.
Implicitly converts a Scala mutable Map
to a Java Map
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala mutable Seq
to a Java List
.
Implicitly converts a Scala mutable Seq
to a Java List
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala mutable Set
to a Java Set
.
Implicitly converts a Scala mutable Set
to a Java Set
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Properties
to a Scala mutable Map[String, String]
.
Implicitly converts a Java Properties
to a Scala mutable Map[String, String]
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala Seq
to a Java List
.
Implicitly converts a Scala Seq
to a Java List
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Scala Set
to a Java Set
.
Implicitly converts a Scala Set
to a Java Set
.
Attributes
- See also
- Inherited from:
- ToJavaImplicits
- Source
- ImplicitConversions.scala
Implicitly converts a Java Set
to a Scala mutable Set
.
Implicitly converts a Java Set
to a Scala mutable Set
.
Attributes
- See also
- Inherited from:
- ToScalaImplicits
- Source
- ImplicitConversions.scala