Guava 31.1 released, Google Java core library
Guava is a set of core libraries that includes new collection types (such as multimap and multiset), immutable collections, a graph library, functional types, an in-memory cache, and APIs/utilities for concurrency, I/O, hashing, primitives, reflection, string processing, and much more!
Guava comes in two flavors.
- The JRE flavor requires JDK 1.8 or higher.
- If you need support for JDK 1.7 or Android, use the Android flavor. You can find the Android Guava source in the
Guava 31.1 released.
base: Deprecated the
lazyStackTraceIsLazy. They are no longer useful on any current platform. (6ebd7d8)
collect: Added a new method
ImmutableMap.Builder.buildKeepingLast(), which keeps the last value for any given key rather than throwing an exception when a key appears more than once. (68500b2)
collect: As a side-effect of the
buildKeepingLast()change, the idiom
ImmutableList.copyOf(Maps.transformValues(map, function))may produce different results if
functionhas side-effects. (This is not recommended.) (68500b2)
ByteStreams.nullOutputStream()to follow the contract of
OutputStream.writeby throwing an exception if the range of bytes is out of bounds. (1cd85d0)
@CheckReturnValueto the package (with a few exceptions). (a0e2577)
util.concurrent: Added accumulate/update methods for
APIs promoted from
collect: the remaining methods in
escape: various APIs (468c68a)
io: various APIs in
net: various APIs (261ac7a)
reflect: various APIs (9f6a384)
testlib: various APIs (93a8f02)
Durationoverloads in the class (825de9a)
FluentFuturetype, its factory methods, and