Top "Guava" questions

Google's Core Java Library for Java and Android development.

guava: Best way to iterate over the key->collection entries of a Multimap?

I'm looking for the corresponding way, for Multimap, to iterate over entries of a Map, namely: Map<K,V&…

guava loops multimap
A complex key for guavas Cache (shifting)

I have a point object: class Point { final int x,y; ... } Because these points will be used/created all over …

java caching guava shift
Convert Guava HashMultimap to json

I want to print HashMultiMap as json. HashMultimap<String,Object> multimap = HashMultimap.create(); multimap.put("a",Obj1); multimap.…

json gson guava multimap
Guava cache and preserving checked exceptions

I'm refactoring some code to use guava Cache. Initial code: public Post getPost(Integer key) throws SQLException, IOException { return PostsDB.…

java caching exception-handling guava checked-exceptions
Why does Iterables.find() in Guava throw NoSuchElementException, instead of returning null?

I love Google Guava and use it a lot, but there is one method I always find me writing.. public …

guava api-design
Collect into Guava's ListMultiMap using Java 8 streams

I am trying to collect into a ListMultiMap using java 8 without using the forEach operation. If I were to write …

java java-8 java-stream guava collectors
Jersey 2 Client java.lang.NoSuchMethodError: org.glassfish.jersey.CommonProperties.getValue

I'm trying to setup a very simple Jersey client example. So I started with a pom.xml like this: <…

guava jersey-2.0 jersey-client
Adding Google Guava to Android project - significantly slows down the build

After adding Google Guava r09 to our Android project the build time increased significantly, especially the DEX generation phase. I …

java android build guava dex
Adding a key with an empty value to Guava Multimap

I have a need to add a key to a Guava Multimap with an empty collection as the value. How …

guava multimap
Why do I need adding artifact JSR305 to use Guava 14+?

While looking for informations on stackoverflow, I have seen a question similar to mine, but with no real answer here. …

java maven guava jsr305