Top "Guava" questions

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

Google Guava Supplier Example

Please explain the use of the interface Supplier(in Guava) with a suitable example .

java guava
What's the difference between Collections.unmodifiableSet() and ImmutableSet of Guava?

JavaDoc of ImmutableSet says: Unlike Collections.unmodifiableSet, which is a view of a separate collection that can still change, an …

java immutability guava
What are the big improvements between guava and apache equivalent libraries?

We currently use apache collections, string utils, etc. I need to decide if we should switch from the apache foundations …

java apache-commons guava
Datastax Cassandra Driver throwing CodecNotFoundException

The exact Exception is as follows com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [varchar <…

guava datastax cloudera-cdh datastax-java-driver spark-cassandra-connector
Remove duplicates from List using Guava

How can we remove duplicates from List with the help of Guava api? Currently I am following this: private List&…

java list generics arraylist guava
What is the difference between google's ImmutableList and Collections.unmodifiableList ()?

From ImmutableList javadocs: Unlike Collections.unmodifiableList(java.util.List), which is a view of a separate collection that can still …

java collections comparison guava
Generating an alphabetic sequence in Java

I'm looking for a way of generating an alphabetic sequence: A, B, C, ..., Z, AA, AB, AC, ..., ZZ. Can anyone …

java collections sequence guava alphabetical
What's the point of Guava's Optional class

I've recently read about this and seen people using this class, but in pretty much all cases, using null would've …

java generics guava
Guava - How to remove from a list, based on a predicate, keeping track of what was removed?

I have an ArrayList to be filtered, and various Guava Predicates to filter it with. This list will have only 50…

java collections filtering guava predicate
Java method that returns a function?

I'm using Guava collections' transform functions, and finding myself making a lot of anonymous functions like this pseudocode: Function<…

java guava generic-collections