Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.6.0-jre</version>
<!-- or, for Android: -->
<version>33.6.0-android</version>
</dependency>Jar files
Guava requires one runtime dependency, which you can download here:
Javadoc
JDiff
Changelog
- Migrated some classes from
finalize()toPhantomReferencein preparation for the removal of finalization. (786b619, 7c6b17c, aeef909) cache: DeprecatedCacheBuilderAPIs that useTimeUnitin favor of those that useDuration. (73f8b0b)collect: AddedtoImmutableSortedMapcollectors that use the natural comparator. (64d70b9)collect: ChangedConcurrentHashMultiset,ImmutableMapandTreeMultisetdeserialization to avoid mutatingfinalfields. In extremely unlikely scenarios in which an instance of that type contains an object that refers back to that instance, this could lead to a broken instance that throwsNullPointerExceptionwhen used. (8240c7e, 0464680)graph: Removed@Betafrom all APIs in the package. (dae9566)graph: Added support toGraphs.transitiveClosure()for different strategies for adding self-loops. (2e13df2)graph: Added anasNetwork()view toGraphandValueGraph. (909c593)hash: AddedBloomFilter.serializedSize(). (df9bcc2)net: AddedHttpHeaders.CDN_CACHE_CONTROL. (75331b5)