Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.4.0-jre</version>
<!-- or, for Android: -->
<version>33.4.0-android</version>
</dependency>
Jar files
Guava requires one runtime dependency, which you can download here:
Javadoc
JDiff
Changelog
- Exposed additional Java 8 APIs to Android users. (6082782, 9b0109c, 6ace8bc, b650b9f, c6c2680, 984f713, f9f3fff, cdc2254)
base
: DeprecatedCharsets
constants in favor ofStandardCharsets
. We will not remove the constants, but we recommend usingStandardCharsets
for consistency. (45e6be2)base
: AddedToStringHelper.omitEmptyValues()
. (f5ec2ab)collect
: Added an optimizedcopyOf
method toTreeRangeMap
. (a46565d)collect.testing
: Fixed@Require
annotations so that features implied by absent features are not also required to be absent. (81be061)io
: ChangedByteSink
andCharSink
to no longer callflush()
in some cases beforeclose()
. This is a no-op for well-behaved streams, which internally flush their data as part of closing. However, we have discovered some stream implementations that have overriddenclose()
to do nothing, including not to flush some buffered data. If this change causes problems, the simplest fix is usually to change theclose()
override to at least callflush()
. (6ace8bc)net
: AddedHttpHeaders.ALT_SVC
andMediaType.CBOR
. (503ba42, 7c0bf08)