Which Java library library do you recommend?

I inherited the command and code base (Java).

The code base uses many explicit loops for each. I would like to replace them (edit: in future code) with something like Commons Collections Transformers and Predicates and its collection and transformation methods.

However, collecting Commons is not common. The rest of my code base, no matter what it lacks, is there, and I do not want to introduce many castings.

So, I look at the Commons-Collections collection with Generics (http://sourceforge.net/projects/collections/) and in Guava (formerly Google Collections) (http://code.google.com/p/guava- library/) .

There is only one question: is it either or both libraries that are generally recognized as safe for use in production? Do you use either in production?

Question two: of two, what do you recommend? The answers from anyone who used them are also great, the answers from those who used them even better!

Finally, my team includes a group of contractors who are at the middle and senior level, as well as middle and junior level employees in Java (edit: but with many years of programming experience without OO). Therefore, I do not want to introduce more than one collection library, and I want it to not be too complicated for any of my teams.

Thank!

: , -. , , , , . , , Collections/Transformer/Predicate, , , .

+5
3

Google . , java , . , Lists.newArrayList, .

+4

, Collection, .

​​, ( ), .

: lambdaj. , , , .

+2

All Articles