Class

com.daodecode.scalaj.collection.immutable

DeepJavaListAsImmutableSeq

Related Doc: package immutable

Permalink

implicit final class DeepJavaListAsImmutableSeq[A] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DeepJavaListAsImmutableSeq
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DeepJavaListAsImmutableSeq(javaList: collection.JList[A])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def deepAsScalaImmutable[B](implicit converter: SConverter[A, B]): Seq[B]

    Permalink

    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.

    B

    New type of resulting Buffer elements

    converter

    Implicit converter to convert from A to B.

    returns

    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))
  6. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  8. val javaList: collection.JList[A]

    Permalink
  9. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped