com.daodecode.scalaj.collection.immutable

Importing com.daodecode.scalaj.collection.immutable._ allows to use "extension" methods deepAsScalaImmutable, which convert all supported nested Java collections to immutable versions of corresponding Scala collections as well as primitive wrappers.

Attributes

Members list

Type members

Classlikes

final implicit class DeepJavaListAsImmutableSeq[A](val javaList: List[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepJavaMapAsImmutableMap[A, B](val javaMap: Map[A, B]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepJavaSetAsImmutableSet[A](val javaSet: Set[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any

Trait for bringing in implicit SCastConverters for converting between Java and immutable Scala collections. Importing com.daodecode.scalaj.collection.immutable._ will bring them in the scope.

Trait for bringing in implicit SCastConverters for converting between Java and immutable Scala collections. Importing com.daodecode.scalaj.collection.immutable._ will bring them in the scope.

Attributes

Supertypes
class Object
trait Matchable
class Any

Implicits

Implicits

final implicit def DeepJavaListAsImmutableSeq[A](javaList: List[A]): DeepJavaListAsImmutableSeq[A]
final implicit def DeepJavaMapAsImmutableMap[A, B](javaMap: Map[A, B]): DeepJavaMapAsImmutableMap[A, B]
final implicit def DeepJavaSetAsImmutableSet[A](javaSet: Set[A]): DeepJavaSetAsImmutableSet[A]

Inherited implicits

implicit def jListImmutableConverter[A, B](implicit converter: SConverter[A, B]): SConverter[List[A], Seq[B]]

Attributes

Returns

converter for converting Java JList to immutable Scala scala.collection.immutable.Seq. Given converter used to convert elements of Java list

Inherited from:
ImmutableSConverters
implicit def jMapImmutableConverter[A, B, C, D](implicit keyConverter: SConverter[A, C], valueConverter: SConverter[B, D]): SConverter[Map[A, B], Map[C, D]]

Attributes

Returns

converter for converting Java JMap to immutable Scala scala.collection.immutable.Map. Given converters used to convert keys and values of Java map

Inherited from:
ImmutableSConverters
implicit def jSetImmutableConverter[A, B](implicit converter: SConverter[A, B]): SConverter[Set[A], Set[B]]

Attributes

Returns

converter for converting Java JSet to immutable Scala scala.collection.immutable.Set. Given converter used to convert elements of Java set

Inherited from:
ImmutableSConverters