On Sun, Feb 24, 2008 at 12:58 PM, Michael Burschik
> In the past, we (particularly Stian) have been somewhat reluctant to
> introduce new dependencies in the form of external libraries. What
> compelling reasons are there to use the apache libraries?
I actually meant commons-lang and commons-collections
lang: It's a small library full of little helper functions, such as
String tooltip = StringUtils.join(warnings.iterator(), " - ");
which I could have used for the trade report
collections: contains filters, proxies, lazy initializers for collections.
I could take advantage of lazy initializers in the labor report, which
I'm currrenty reworking. That way I could treat a List<Map<Colony,
LaborData>> as having been populated, although it's done on demand.
Another example: we have a method that returns the good types. We
could create another method, that returns the storable good types only
- using a filtered iterator. That could of course also be done by
simply copying the list.