commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henri Yandell <bay...@generationjava.com>
Subject Re: [Collections][SUBMIT] TypedList
Date Tue, 23 Apr 2002 19:54:55 GMT


> The specification for List (and other collections) 'requests' that all
> implementations should have a constructor that takes in a Collection object
> (to do an addAll). I was respecting this by not confusing the constructors.
> Also, I may need constructors to do the simple instanceof check, thus named
> statics work more easily.

Gotya. I keep telling myself I need to pour over the specs more. There
goes my favourite way of coding collection extensions.

> > I don't recall how to use reflection on static methods, only problem I
> > could think of with 'wrap'.
>
> Simply specify null, where you would specify the object in the invoke.

thanks.

Hen


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message