tag:blogger.com,1999:blog-3322141.post113874785311041024..comments2023-10-24T23:22:27.416+10:00Comments on More News: Get FunctionalUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3322141.post-1138786690826122222006-02-01T19:38:00.000+10:002006-02-01T19:38:00.000+10:00Oh and I think trove4j is a lot better anyway.Oh and I think trove4j is a lot better anyway.Andrewhttps://www.blogger.com/profile/00667948202593884438noreply@blogger.comtag:blogger.com,1999:blog-3322141.post-1138786653933830072006-02-01T19:37:00.000+10:002006-02-01T19:37:00.000+10:00I have to say I agree that Microsoft has done quit...I have to say I agree that Microsoft has done quite a lot of good stuff in .NET 2. I especially like the fact that they changed the VM so that you can test drive the type of List, Map, etc - it's not implemented with erasure like in Java. This means at runtime in Java you don't know what type something is. That really sucks.Andrewhttps://www.blogger.com/profile/00667948202593884438noreply@blogger.comtag:blogger.com,1999:blog-3322141.post-1138752251274941072006-02-01T10:04:00.000+10:002006-02-01T10:04:00.000+10:00Bah! .Net 2.0 has this functionality baked into th...Bah! .Net 2.0 has this functionality baked into the framework. Check out the documentation on the <A HREF="http://msdn2.microsoft.com/en-us/library/wdka673a(en-US,VS.80).aspx" REL="nofollow">generic List</A> class. It provides an Exists, Find, FindAll, FindIndex, FindLast, FindLastIndex, ForEach, FindAll and RemoveAll method which take a delegate (method pointer) of type 'bool Predicate<T>' (basically, any method taking the generic type of the List and returning a boolean).<BR/><BR/>No reliance on dodgy Apache Commons libraries required!James Websterhttps://www.blogger.com/profile/02970900030884737399noreply@blogger.com