Common Collections
Thursday, December 7th, 2006Blaine has been singing the praises of Jakarta’s Commons Collections. It’s a group of utilities that make living with Collections much easier. Here is a little snippet of it’s goodness:
ArrayList a = new ArrayList(); for (int i=0; i<10; i++) { a.add(new MyInt(i)); } Predicate p = PredicateUtils.invokerPredicate("isEven"); CollectionUtils.filter(a, p); After all that, List a only has five [...]
