scala list to java list?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

scala list to java list?

Tim Pigden

Hi

 

Is there a conversion from scala list to java list?

 

Tim Pigden

Reply | Threaded
Open this post in threaded view
|

Re: scala list to java list?

Kevin Wright-4
Yes.

It depends on what version of Scala you're using though



On Thu, Sep 10, 2009 at 6:02 PM, Tim Pigden <[hidden email]> wrote:

Hi

 

Is there a conversion from scala list to java list?

 

Tim Pigden


Reply | Threaded
Open this post in threaded view
|

RE: scala list to java list?

Tim Pigden
In reply to this post by Tim Pigden

2.7.5

 

From: Kevin Wright [mailto:[hidden email]]
Sent: 10 September 2009 18:05
To: Tim Pigden
Cc: [hidden email]
Subject: Re: [scala-user] scala list to java list?

 

Yes.

 

It depends on what version of Scala you're using though

Reply | Threaded
Open this post in threaded view
|

Re: scala list to java list?

Daniel Sobral
It's all on scala.collection.jcl (java collection library). I haven't used it, but maybe importing the following implicit conversions will work:
 
import scala.collection.jcl.Conversions._

On Thu, Sep 10, 2009 at 2:18 PM, Tim Pigden <[hidden email]> wrote:

2.7.5

 

From: Kevin Wright [mailto:[hidden email]]
Sent: 10 September 2009 18:05
To: Tim Pigden
Cc: [hidden email]
Subject: Re: [scala-user] scala list to java list?

 

Yes.

 

It depends on what version of Scala you're using though




--
Daniel C. Sobral

Something I learned in academia: there are three kinds of academic reviews: review by name, review by reference and review by value.
Reply | Threaded
Open this post in threaded view
|

RE: scala list to java list?

Tim Pigden
In reply to this post by Tim Pigden

I tried that. Didn’t seem to work. Unless someone can give me an example?

 

From: Daniel Sobral [mailto:[hidden email]]
Sent: 10 September 2009 18:26
To: Tim Pigden
Cc: Kevin Wright; [hidden email]
Subject: Re: [scala-user] scala list to java list?

 

It's all on scala.collection.jcl (java collection library). I haven't used it, but maybe importing the following implicit conversions will work:

 

import scala.collection.jcl.Conversions._

On Thu, Sep 10, 2009 at 2:18 PM, Tim Pigden <[hidden email]> wrote:

2.7.5

 

From: Kevin Wright [mailto:[hidden email]]
Sent: 10 September 2009 18:05
To: Tim Pigden
Cc: [hidden email]
Subject: Re: [scala-user] scala list to java list?

 

Yes.

 

It depends on what version of Scala you're using though




--
Daniel C. Sobral

Something I learned in academia: there are three kinds of academic reviews: review by name, review by reference and review by value.

Reply | Threaded
Open this post in threaded view
|

Re: scala list to java list?

Viktor Klang
I have to recommend:

http://github.com/jorgeortiz85/scala-javautils/tree/master

with the very nice ".asJava" method

On Thu, Sep 10, 2009 at 7:35 PM, Tim Pigden <[hidden email]> wrote:

I tried that. Didn’t seem to work. Unless someone can give me an example?

 

From: Daniel Sobral [mailto:[hidden email]]
Sent: 10 September 2009 18:26
To: Tim Pigden
Cc: Kevin Wright; [hidden email]


Subject: Re: [scala-user] scala list to java list?

 

It's all on scala.collection.jcl (java collection library). I haven't used it, but maybe importing the following implicit conversions will work:

 

import scala.collection.jcl.Conversions._

On Thu, Sep 10, 2009 at 2:18 PM, Tim Pigden <[hidden email]> wrote:

2.7.5

 

From: Kevin Wright [mailto:[hidden email]]
Sent: 10 September 2009 18:05
To: Tim Pigden
Cc: [hidden email]
Subject: Re: [scala-user] scala list to java list?

 

Yes.

 

It depends on what version of Scala you're using though




--
Daniel C. Sobral

Something I learned in academia: there are three kinds of academic reviews: review by name, review by reference and review by value.




--
Viktor Klang

Blog: klangism.blogspot.com
Twttr: viktorklang

Lift Committer - liftweb.com
AKKA Committer - akkasource.org
Cassidy - github.com/viktorklang/Cassidy.git
SoftPub founder: http://groups.google.com/group/softpub