[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [stellation-res] Collection utility methods
|
On Tue, 2002-09-17 at 02:29, Jonathan Gossage wrote:
> In org.eclipse.stellation.util there are a number of Collection class
> wrappers including FileList, IntegerList, IntegerSet, StringList and
> StringSet. At the moment, none of these wrapper classes has the ability to
> handle a raw array in a constructor or add() method. I realize that the
> underlying Java classes do not do this but the operations are type-safe and
> would provide a useful bridge between low level Java API's and type-safe
> collections.
>
> For exanple, the Java File.listFiles() method returns File[] and it would be
> useful to be able to move this into a resizable collection. There are many
> similar situations in the low level Java API's.
>
> Any thoughts on this? If you think this is a good idea, I would be prepared
> to do this immediately since I have immediate need for this facility.
No objections from me. Our approach to the utility classes is pretty
much summed up in the word "utility". They're there to make other
classes easier to read and work with. If adding a method to a utility
class, or adding an entire new utility class will have an impact on
the ease of understanding or extending the system code, then go ahead
and add.
-Mark
--
Mark Craig Chu-Carroll, IBM T.J. Watson Research Center
*** The Stellation project: Advanced SCM for Collaboration
*** http://www.eclipse.org/stellation
*** Work Email: mcc@xxxxxxxxxxxxxx ------- Personal Email:
markcc@xxxxxxxxxxx
Attachment:
signature.asc
Description: This is a digitally signed message part