Disclaimer: I'm not affiliated with Google in any way. I just think these are some great libraries that every Java project should include in the classpath!
The Google Guava Libraries are a nice set of Java utility classes that will probably come in handy in any project. Stuff like immutable collections, string manipulation, handling primitives and easier I/O are some of the concepts they deal with. Unfortunately, the Guava wiki is rather scrawny (UPDATE: Not so scrawny any more!), so I've created this page to collect documentation from around the web.
Note that Google Guava now includes the older Google Collections classes. Make sure that you don't have both libraries in your classpath.
Search Maven central for the version of Guava you want, and then paste the snippet into your pom.xml:
Note that the version number in the snippet above might be outdated.
Resources (newest on top, email me if you want me to add yours)
Added 20.02.12: Kevin Bourrillion does a big tour of Guava at QCon November 2012:
Added 20.02.12: Stay up to date with Guava development on their Google+ page:
Added 15.12.12: Another introduction by Mite Mitreski (slide-set and links):
Added 10.12.12: Introduction to Guava by Bhavin Parikh (slide-set):
Added 10.07.12: EclipseSource article showing off CacheBuilder/LoadingCache:
Added 06.06.12: A quick introduction article from EclipseSource:
Added 05.06.12: Cyrille Martraire has a series on functional Java with Guava:
Added 05.06.12: Tom Jefferys discusses String splitting:
Added 23.12.11: GuavaExplained - The official Guava wiki finally gets some proper content:
Added 23.12.11: Examples on sorting collections from polygenelubricants:
Added 17.11.11: An example from the Guava Concurrency utils, by Bill Bejeck:
Added 19.10.11: An example of using the new Guava EventBus:
Added 19.10.11: How to do Commons Collections stuff with Guava:
Added 23.04.11: Presentation from the Guava team about util.concurrent:
Added 09.02.11: Google Guava vs Apache Commons for arg validation:
Added 22.01.11: Google Guava v07 examples, by Jakub Nabrdalik:
Added 22.01.11: Kevin Bourrillion presents Guava @NetFlix, 2010-04-26
Added 20.01.11: Discussions on StackOverflow of Guava vs Apache Commons:
Added 19.01.11: Read the test source:
A five-part, quite extensive tutorial from Sezin Karli:
This is a presentation I've created about Google Guava. I might perform it on request!
You can find the code from this presentation at GitHub.
Page Revision history
18/1 - 2011: Moved resources to this page.
18/6 - 2010: Wrote the original blog post.