scala.collection.convert

Type members

Classlikes

Defines converter methods from Scala to Java collections. These methods are available through the scala.jdk.javaapi.CollectionConverters object.
Source
(source)
Defines asJava extension methods, available through scala.jdk.CollectionConverters.
Source
(source)
Defines converter methods from Java to Scala collections. These methods are available through the scala.jdk.javaapi.CollectionConverters object.
Source
(source)
Defines asScala extension methods, available through scala.jdk.CollectionConverters.
Source
(source)
@deprecated("Use `scala.jdk.CollectionConverters` instead", "2.13.0")
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).
Source
(source)
@deprecated("Use `scala.jdk.CollectionConverters` instead", "2.13.0")
Convenience for miscellaneous implicit conversions from Scala to Java collections API.
It is recommended to use explicit conversions provided by collection.JavaConverters instead. Implicit conversions may cause unexpected issues, see ImplicitConversions.
Source
(source)
@deprecated("Use `scala.jdk.CollectionConverters` instead", "2.13.0")
Convenience for miscellaneous implicit conversions from Java to Scala collections API.
It is recommended to use explicit conversions provided by collection.JavaConverters instead. Implicit conversions may cause unexpected issues, see ImplicitConversions.
Source
(source)
Defines extension methods to create Java Streams for Scala collections, available through scala.jdk.javaapi.StreamConverters.
Companion
object
Source
(source)
Companion
class
Source
(source)
@deprecated("Use `scala.jdk.CollectionConverters` instead", "2.13.0")
Defines implicit conversions from Scala to Java collections.
Source
(source)
@deprecated("Use `scala.jdk.CollectionConverters` instead", "2.13.0")
Defines implicit converter methods from Java to Scala collections.
Source
(source)