Converts given Java JList to immutable Scala scala.collection.immutable.Seq
Elements inside list are converted using given implicit converter
,
which allows to convert nested Java collections and primitive wrappers.
Converts given Java JList to immutable Scala scala.collection.immutable.Seq
Elements inside list are converted using given implicit converter
,
which allows to convert nested Java collections and primitive wrappers.
New type of resulting Buffer elements
Implicit converter to convert from A
to B
.
Scala immutable seq. Example:
scala> val jl = new java.util.ArrayList[java.util.Set[JInt]]() jl: java.util.ArrayList[java.util.Set[com.daodecode.scalaj.collection.JInt]] = [] scala> jl.add(new java.util.HashSet[JInt]) res0: Boolean = true scala> jl.get(0).add(23) res1: Boolean = true scala> jl res2: java.util.ArrayList[java.util.Set[com.daodecode.scalaj.collection.JInt]] = [[23]] scala> jl.deepAsScalaImmutable res3: scala.collection.immutable.Seq[Set[Int]] = Vector(Set(23))