Guava bundles Java libraries for collections, graphs, concurrency, I/O, hashing, primitives, strings, and related everyday programming tasks.
Overview
Guava extends standard Java with collection types such as multimaps and multisets, immutable collections, and a graph library, alongside helpers for concurrency, I/O, hashing, primitives, and strings. Teams adopt it as a dependency in application and library code rather than as a standalone program.
Two build flavors target a Java 8+ JRE or Android-compatible consumers. Maven coordinates use com.google.guava as group ID and guava as artifact ID, with version strings distinguishing jre versus android variants. Gradle and Maven snippets document implementation versus API dependency scopes.
APIs marked @Beta may change without notice, while non-beta public APIs aim to stay binary compatible over time. Runtime linkage relies on failureaccess plus annotation-only dependencies documented separately. Serialized forms are not guaranteed stable across releases.
Mainline builds are exercised on OpenJDK across Linux and Windows, though some I/O utilities may behave differently off Linux. The Android flavor is tested at API level 24. Snapshot API Javadoc remains available online for integrators who prefer current docs over pinned releases.
Key features
- Multimaps, multisets, immutable collections
- Graph library
- Concurrency utilities
- I/O and hashing helpers
- JRE and Android flavors
- Maven and Gradle integration
- Stable non-beta API policy
Use cases
- Shared utilities in Java services
- Android apps needing Guava types
- Library authors exposing Guava APIs
- Safer collection patterns in Java
- Graph-structured data in Java