Top "Guava" questions

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

Get minvalue of a Map(Key,Double)

Is there a method (maybe with Google Collections) to obtain the min value of a Map(Key, Double)? In the …

java guava
Google Guava vs. Apache Commons

I was looking for a bidirectional map implementation in Java, and stumbled upon these two libraries: Google Guava (formerly "Google …

java collections apache-commons guava
Most efficient way to find the collection of all ids in a collection of entities

I have an entity: public class Entity { private long id; private String data; public long getId() { return id; } public String …

java collections guava apache-commons
How does @RequestParam in Spring handle Guava's Optional?

@RequestMapping(value = "/contact.html", method = RequestMethod.POST) public final ModelAndView contact( @RequestParam(value = "name", required = false) Optional<String> …

spring spring-mvc guava nullable optional
How to convert a possible null-value to a default value using Guava?

Does Guava provide a method to get a default value if a passed object reference is null ? I'am looking for …

java guava
Java 8 Stream String Null Or Empty Filter

I've got Google Guava inside Stream: this.map.entrySet().stream() .filter(entity -> !Strings.isNullOrEmpty(entity.getValue())) .map(obj …

java java-8 guava java-stream
How to transform List<String> to Map<String,String> with Google collections?

I have a list of strings and I have a function to generate a value for each key in the …

java list dictionary guava
How to iterate through google multimap

I have to iterate through google multimap. But I am using jdk 1.4 and can't switch to higher version. So i …

java guava multimap
Cleanest way to create a guava MultiMap from a java8 stream

I have a List<Foo> and want a Multimap<String, Foo> where we've grouped the Foo's …

guava java-8 java-stream
How to shrink code - 65k method limit in dex

I have a rather large Android app that relies on many library projects. The Android compiler has a limitation of 65536 …

android google-drive-api guava dex android-multidex