Instanciating a java.util.Set


#1

Hi,

I’m using a Java library from Jruby, and I need to pass a
java.util.Set as an argument to a method. But how can construct such a
set?
I’m not even sure which implementation of this interface I should
choose.
I saw org.jruby.RubyArray implements this interface. Is that the way to
go?

Thanks

Raphaël


Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#2

Raphael B. wrote:

Hi,

I’m using a Java library from Jruby, and I need to pass a
java.util.Set as an argument to a method. But how can construct such a
set?
I’m not even sure which implementation of this interface I should choose.
I saw org.jruby.RubyArray implements this interface. Is that the way to go?

Why not just use Java’s Set implementations?

java.util.HashSet.new

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

#3

On Mon, Oct 6, 2008 at 7:28 PM, Charles Oliver N.
removed_email_address@domain.invalid wrote:

Why not just use Java’s Set implementations?

java.util.HashSet.new

It works fine. Thanks!

Raph

  • Charlie

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email