scala / 3.1.1 / scala / collection / convert / implicitconversions$.html /

Object scala.collection.convert.ImplicitConversions

@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).

Deprecated
Supertypes
Self type

Inherited implicits

Source
implicit def `buffer AsJavaList`[A](b: Buffer[A]): List[A]

Implicitly converts a Scala mutable Buffer to a Java List.

See also

JavaConverters.bufferAsJavaList

Inherited from ToJavaImplicits

Source
implicit def `collection AsScalaIterable`[A](i: Collection[A]): Iterable[A]

Implicitly converts a Java Collection to an Scala Iterable.

See also

JavaConverters.collectionAsScalaIterable

Inherited from ToScalaImplicits

Source
implicit def `collection asJava`[A](it: Iterable[A]): Collection[A]

Implicitly converts a Scala Iterable to an immutable Java Collection.

See also

JavaConverters.asJavaCollection

Inherited from ToJavaImplicits

Source
implicit def `dictionary AsScalaMap`[K, V](p: Dictionary[K, V]): Map[K, V]

Implicitly converts a Java Dictionary to a Scala mutable Map.

See also

JavaConverters.dictionaryAsScalaMap

Inherited from ToScalaImplicits

Source
implicit def `dictionary asJava`[K, V](m: Map[K, V]): Dictionary[K, V]

Implicitly converts a Scala mutable Map to a Java Dictionary.

See also

JavaConverters.asJavaDictionary

Inherited from ToJavaImplicits

Source

Implicitly converts a Java Enumeration to a Scala Iterator.

See also

JavaConverters.enumerationAsScalaIterator

Inherited from ToScalaImplicits

Source
implicit def `enumeration asJava`[A](it: Iterator[A]): Enumeration[A]

Implicitly converts a Scala Iterator to a Java Enumeration.

See also

JavaConverters.asJavaEnumeration

Inherited from ToJavaImplicits

Source
implicit def `iterable AsScalaIterable`[A](i: Iterable[A]): Iterable[A]

Implicitly converts a Java Iterable to a Scala Iterable.

See also

JavaConverters.iterableAsScalaIterable

Inherited from ToScalaImplicits

Source
implicit def `iterable asJava`[A](i: Iterable[A]): Iterable[A]

Implicitly converts a Scala Iterable to a Java Iterable.

See also

JavaConverters.asJavaIterable

Inherited from ToJavaImplicits

Source
implicit def `iterator asJava`[A](it: Iterator[A]): Iterator[A]

Implicitly converts a Scala Iterator to a Java Iterator.

See also

JavaConverters.asJavaIterator

Inherited from ToJavaImplicits

Source
implicit def `iterator asScala`[A](it: Iterator[A]): Iterator[A]

Implicitly converts a Java Iterator to a Scala Iterator.

See also

JavaConverters.asScalaIterator

Inherited from ToScalaImplicits

Source
implicit def `list asScalaBuffer`[A](l: List[A]): Buffer[A]

Implicitly converts a Java List to a Scala mutable Buffer.

See also

JavaConverters.asScalaBuffer

Inherited from ToScalaImplicits

Source
implicit def `map AsJavaConcurrentMap`[K, V](m: Map[K, V]): ConcurrentMap[K, V]

Implicitly converts a Scala mutable concurrent.Map to a Java ConcurrentMap.

See also

JavaConverters.mapAsJavaConcurrentMap

Inherited from ToJavaImplicits

Source
implicit def `map AsJavaMap`[K, V](m: Map[K, V]): Map[K, V]

Implicitly converts a Scala Map to a Java Map.

See also

JavaConverters.mapAsJavaMap

Inherited from ToJavaImplicits

Source
implicit def `map AsScalaConcurrentMap`[K, V](m: ConcurrentMap[K, V]): Map[K, V]

Implicitly converts a Java ConcurrentMap to a Scala mutable ConcurrentMap.

See also

JavaConverters.mapAsScalaConcurrentMap

Inherited from ToScalaImplicits

Source
implicit def `map AsScala`[K, V](m: Map[K, V]): Map[K, V]

Implicitly converts a Java Map to a Scala mutable Map.

See also

JavaConverters.mapAsScalaMap

Inherited from ToScalaImplicits

Source
implicit def `mutableMap AsJavaMap`[K, V](m: Map[K, V]): Map[K, V]

Implicitly converts a Scala mutable Map to a Java Map.

See also

JavaConverters.mutableMapAsJavaMap

Inherited from ToJavaImplicits

Source
implicit def `mutableSeq AsJavaList`[A](seq: Seq[A]): List[A]

Implicitly converts a Scala mutable Seq to a Java List.

See also

JavaConverters.mutableSeqAsJavaList

Inherited from ToJavaImplicits

Source
implicit def `mutableSet AsJavaSet`[A](s: Set[A]): Set[A]

Implicitly converts a Scala mutable Set to a Java Set.

See also

JavaConverters.mutableSetAsJavaSet

Inherited from ToJavaImplicits

Source

Implicitly converts a Java Properties to a Scala mutable Map[String, String].

See also

JavaConverters.propertiesAsScalaMap

Inherited from ToScalaImplicits

Source
implicit def `seq AsJavaList`[A](seq: Seq[A]): List[A]

Implicitly converts a Scala Seq to a Java List.

See also

JavaConverters.seqAsJavaList

Inherited from ToJavaImplicits

Source
implicit def `set AsJavaSet`[A](s: Set[A]): Set[A]

Implicitly converts a Scala Set to a Java Set.

See also

JavaConverters.setAsJavaSet

Inherited from ToJavaImplicits

Source
implicit def `set asScala`[A](s: Set[A]): Set[A]

Implicitly converts a Java Set to a Scala mutable Set.

See also

JavaConverters.asScalaSet

Inherited from ToScalaImplicits

© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.1.1/scala/collection/convert/ImplicitConversions$.html