RE: Collection or list as return ??

2001-06-18 Thread Robert Hargreaves
Subject: Re: Collection or list as return ?? Thanks Scott, Thanks for the test (stupid that I didn't thought about that ;) ). So, yes the returned Collection (read: ArrayList) is a sorted one. But how general is this, as I can't find anything in the J2EE spec about

RE: Collection or list as return ??

2001-06-16 Thread Eddie Post
... Hmmm I little bit to much I think... Eddie From: Jeff Schnitzer [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: RE: Collection or list as return ?? Date: Fri, 15 Jun 2001 16:57:20 -0700 You're right, there is no guarantee from the spec

Re: Collection or list as return ??

2001-06-15 Thread Scot Weber
Eddie, java.util.Collection is an interface, so chances are the real container is a java.util.ArrayList, which is linearly sequential. I don't know this to be a fact, but it's just a thought . . . - Scot Eddie wrote: Hellu there, Some time ago someone made a remark that it make no

Re: Collection or list as return ??

2001-06-15 Thread Scot Weber
Eddie, I just tested it . . . MyTestHome.java __ public interface MyTestHome { public Collection findAll () ... } mytest.jsp__ %= myTestHome.findall ().getClass () % output_ java.util.ArrayList peace - scot Eddie wrote:

Re: Collection or list as return ??

2001-06-15 Thread Eddie Post
] Subject: Re: Collection or list as return ?? Date: Fri, 15 Jun 2001 12:15:46 -0700 Eddie, I just tested it . . . MyTestHome.java __ public interface MyTestHome { public Collection findAll () ... } mytest.jsp__ %= myTestHome.findall

RE: Collection or list as return ??

2001-06-15 Thread Jeff Schnitzer
-Original Message- From: Eddie Post [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 3:48 PM To: Orion-Interest Subject: Re: Collection or list as return ?? Thanks Scott, Thanks for the test (stupid that I didn't thought about that ;) ). So, yes the returned Collection (read