List/Grid Tag Archives: Google Guava

Guava’s EventBus – Simple Publisher/Subscriber
Looking over recent additions to Google’s Guava Libraries Release 10 I noticed the addition of EventBus. This is a lightweight implementation of a publish-subscribe style messaging ...

5 Reasons to use Guava
Guava is an open source library containing many classes for Java and written by Google. It’s a potentially useful source of miscellaneous utility functions and classes that I’m ...

Google Guava Cache with regular expression patterns
Quite recently I’ve seen a nice presentation about Google Guava and we came to the conclusion in our project that it could be really interesting to use the its Cache functionallity. ...

Hamcrest Matchers, Guava Predicate and Builder design pattern
Often, while coding we have to deal with some POJO objects that have dozens of fields in them. Many times we initialize those classes through a constructor having dozens of arguments ...

Advanced ListenableFuture capabilities
Last time we familiarized ourselves with ListenableFuture. I promised to introduced more advanced techniques, namely transformations and chaining. Let’s start from something straightforward. ...

ListenableFuture in Guava
ListenableFuture in Guava is an attempt to define consistent API for Future objects to register completion callbacks. With the ability to add callback when Future completes, we can ...

Using Google Guava’s Ordering API
We’ve been playing a bit more with Google’s Guava library – what a great library! The most recent thing we used it for was to sort out the comparators for our domain objects. ...

IntelliJ IDEA: Generate equals, hashCode and toString with Google Guava
THE PROBLEM In the world of Java, we’re quite often in the need of writing equals, hashCode and toString methods. To be honest, this is usually only an boilerplate obligation. Thanks ...

Selecting your Collections library
Is this really something you should bother? Is there something fundamentally wrong with java.util.ArrayList and java.util.HashMap? For most of the source code out there the answer is ...

Collection creation and Immutability with Google Guava
So, thought I’d take a look at some of the collection creation patterns Guava offers, and also some of the Immutable collection types it offers. If you’ve not seen my previous ...


