scala.collection.convert
Members list
Type members
Classlikes
Defines converter methods from Scala to Java collections.
Defines converter methods from Scala to Java collections. These methods are available through the scala.jdk.javaapi.CollectionConverters object.
Attributes
- Source
- AsJavaConverters.scala
- Supertypes
- Known subtypes
-
object JavaConverters.typeobject CollectionConverters.type
Defines asJava
extension methods, available through scala.jdk.CollectionConverters.
Defines asJava
extension methods, available through scala.jdk.CollectionConverters.
Attributes
- Source
- AsJavaExtensions.scala
- Supertypes
- Known subtypes
-
object CollectionConverters.type
Defines converter methods from Java to Scala collections.
Defines converter methods from Java to Scala collections. These methods are available through the scala.jdk.javaapi.CollectionConverters object.
Attributes
- Source
- AsScalaConverters.scala
- Supertypes
- Known subtypes
-
object JavaConverters.typeobject CollectionConverters.type
Defines asScala
extension methods, available through scala.jdk.CollectionConverters.
Defines asScala
extension methods, available through scala.jdk.CollectionConverters.
Attributes
- Source
- AsScalaExtensions.scala
- Supertypes
- Known subtypes
-
object CollectionConverters.type
Defines extension methods to create Java Streams for Scala collections, available through scala.jdk.javaapi.StreamConverters.
Defines extension methods to create Java Streams for Scala collections, available through scala.jdk.javaapi.StreamConverters.
Attributes
- Companion
- object
- Source
- StreamExtensions.scala
- Supertypes
- Known subtypes
-
object StreamConverters.type
Attributes
- Companion
- trait
- Source
- StreamExtensions.scala
- Supertypes
- Self type
-
StreamExtensions.type
Deprecated classlikes
Convenience for miscellaneous implicit conversions between Java and Scala collections API.
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
- Supertypes
- Self type
-
ImplicitConversions.type
Convenience for miscellaneous implicit conversions from Scala to Java collections API.
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.
Attributes
- Deprecated
- true
- Source
- ImplicitConversions.scala
- Supertypes
- Self type
Convenience for miscellaneous implicit conversions from Java to Scala collections API.
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.
Attributes
- Deprecated
- true
- Source
- ImplicitConversions.scala
- Supertypes
- Self type
Defines implicit conversions from Scala to Java collections.
Defines implicit conversions from Scala to Java collections.
Attributes
- Deprecated
- true
- Source
- ImplicitConversions.scala
- Supertypes
- Known subtypes
-
object ImplicitConversions.typeobject ImplicitConversionsToJava.type
Defines implicit converter methods from Java to Scala collections.
Defines implicit converter methods from Java to Scala collections.
Attributes
- Deprecated
- true
- Source
- ImplicitConversions.scala
- Supertypes
- Known subtypes
-
object ImplicitConversions.typeobject ImplicitConversionsToScala.type