Top "Guava" questions

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

Guava: how to combine filter and transform?

I have a collection of Strings, and I would like to convert it to a collection of strings were all …

java guava
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules guava-20.0.jar (com.google.guava:guava:20.0)

When I use implementation 'com.google.firebase:firebase-inappmessaging-display:17.2.0' in my app/build.gradle, I get this error: Duplicate class …

android firebase guava firebase-in-app-messaging
Why there is no getFirst(iterable) method?

Iterables present two methods for getLast public static <T> T getLast(Iterable<T> iterable); public static &…

java collections guava api-design iterable
How can I collect a Java 8 stream into a Guava ImmutableCollection?

I would like to do the following: List<Integer> list = IntStream.range(0, 7).collect(Collectors.toList()); but in a …

java-8 guava java-stream
How to get max() element from List in Guava

Let's say we have a Collection of Items: class Item { public String title; public int price; } List<Item> …

java guava
Apache's StringUtils.isBlank(str) vs. Guava's Strings.isNullOrEmpty(str): Should you routinely check for whitespace?

Is there any advantage in using StringUtils.isBlank(str) from Apache commons-lang. vs Strings.isNullOrEmpty(String string) from Google Guava? …

java string apache-commons guava
Can someone help me understand Guava CacheLoader?

I'm new to Google's Guava library and am interested in Guava's Caching package. Currently I have version 10.0.1 downloaded. After reviewing …

caching guava
IllegalAccessError to guava's StopWatch from org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus

I'm trying to run small spark application and am getting the following exception: Exception in thread "main" java.lang.IllegalAccessError: …

hadoop apache-spark mapreduce guava
no such method error: ImmutableList.copyOf()

I'm using Guava-05-snapshot, with Sun's JDK 1.6 The code blows up executing this snippet: List<String> badpasswords = Lists.…

java guava
Having a Multimap sorted on keys only in Java

I would like to have a c.g.c.c.Multimap that is sorted based on keys only. The values …

java sorting guava multimap