talira

Google core libraries for Java

open sourceApache-2.0free

Guava is a set of core Java libraries from Google: new collection types (multimap, multiset and more), immutable collections, a graph library, and utilities for concurrency, I/O, hashing, primitives and strings. It's used on most Java projects inside Google and by many other companies. It comes in two flavours, one for the JRE (JDK 1.8 or later) and one for Android or libraries that need to stay Android-compatible, chosen by the version's -jre or -android suffix.

Problems it solves

  • immutable collections and multimaps in Java
  • common Java utilities for strings, hashing and concurrency without writing them myself
  • an in-memory graph data structure library for Java
  • a utility library for Java that also works on Android

Features

  • multimap, multiset and other collection types
  • immutable collections
  • graph library
  • concurrency, I/O, hashing, primitives and string utilities
  • JRE and Android flavours

Alternatives

The same job

These do what Guava does.

  1. Caffeine A high performance, near optimal caching library for Java

Compare Guava with the top 3