-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Release19
Colin Decker edited this page Jul 23, 2015
·
19 revisions
- 19.0-rc1 was released on July 23, 2015.
(See ReleaseHistory.)
| Guava | Guava (GWT) | |
|---|---|---|
| Maven Identifier | com.google.guava:guava:19.0-rc1 | com.google.guava:guava-gwt:19.0-rc1 |
| Jar | guava-19.0-rc1.jar | guava-gwt-19.0-rc1.jar |
| Javadoc | guava-19.0-rc1-javadoc.jar | guava-gwt-19.0-rc1-javadoc.jar |
| Sources | guava-19.0-rc1-sources.jar | guava-gwt-19.0-rc1-sources.jar |
See UseGuavaInYourBuild for help integrating Guava into your build environment.
23 issues are resolved in this release.
Full JDiff Report of changes since release 18.0.
-
CharMatcher- Static factory methods equivalent to the
CharMatcherconstants have been added (for example,CharMatcher.whitespace(), which is equivalent toCharMatcher.WHITESPACE). Eventually, the constants will be deprecated and removed. - This is being done because using constants requires a large number of classes to be initialized when anything from
CharMatcheris used; switching to static factory methods allows classes to be initialized only as needed for the type ofCharMatcheractually being used.
- Static factory methods equivalent to the
-
Throwables.lazyStackTrace(Throwable)- Returns aList<StackTraceElement>that may load the stack trace elements lazily. Useful if you want to get only the first N elements of the stack trace efficiently. Also addedlazyStackTraceIsLazy(), a method that returns whether or not the above method is able to use the special implementation that makes it lazy on the current platform. -
VerifyException- Added constructor overloads taking aThrowablecause.
This package has graduated from @Beta, making it safe to use in library code.
- Exposed a type (
CacheLoader.UnsupportedLoadingOperationException) and a factory method (RemovalNotification.create) that may be needed for writing a custom cache implementation.
Added factory and builder methods for various ImmutableMaps and ImmutableMultimaps that take Iterable<Map.Entry>.
- Added
FluentIterable.toMultiset() - Added
RangeSet.asDescendingSetOfRanges()andRangeMap.asDescendingMapOfRanges() - Added
Lists.cartesianProduct(List...)andLists.cartesianProduct(List<List>>) - Added
Maps.newLinkedHashMapWithExpectedSize(int) - Re-added
Multisets.removeOccurrences(Multiset, Multiset)which was (binary incompatibly) missing in 18.0 because it was replaced withMultisets.removeOccurences(Multiset, Iterable) - Deprecated
MapConstraintandMapConstraints - Deprecated
Sets.newSetFromMap(Map)- Java 6 providesCollections.newSetFromMap(Map) - Removed
MapMaker.softValues()
- Added
EventBus.identifier() - Removed protected method
AsyncEventBus.dispatchQueuedEvents()(made package-private)
- Added
BloomFilter.createoverloads taking alongfor theexpectedInsertions - Added
Hashing.sha384() - Added
Hashing.concatenating(HashFunction, HashFunction, HashFunction...)andHashing.concatenating(Iterable<HashFunction>)
- Added
ByteSource.sizeIfKnown() - Added
CharSource.length() - Added
CharSource.lengthIfKnown()
- Added a couple new constants to
HttpHeadersandMediaType - Updated public suffix list for
InternetDomainName
- Added
TypeToken.isSubtypeOf(TypeToken),TypeToken.isSupertypeOf(TypeToken)and overloads of both that take aType - Deprecated
TypeToken.isAssignableFrom(TypeToken)andTypeToken.isAssignableFrom(Type)-isSupertypeOfprovides equivalent behavior with a less confusing name
- Added
AbstractFuture.newCancellationCause() - Added
AbstractFuture.setFuture(ListenableFuture) - Added
Futures.getChecked - Added
Futures.catchingandFutures.catchingAsync - Added
Futures.transformAsync - Added
Futures.withTimeout - Deprecated
FutureFallbackandFutures.withFallbackmethods - these are replaced withFutures.catching - Deprecated
Futures.getmethods taking aClass<X extends Exception>- these are replaced withFutures.getChecked - Deprecated
Futures.transformmethods taking anAsyncFunction- these are replaced withFutures.transformAsync
- Introduction
- Basic Utilities
- Collections
- Graphs
- Caches
- Functional Idioms
- Concurrency
- Strings
- Networking
- Primitives
- Ranges
- I/O
- Hashing
- EventBus
- Math
- Reflection
- Releases
- Tips
- Glossary
- Mailing List
- Stack Overflow
- Android Overview
- Footprint of JDK/Guava data structures