guava_ch
Introduction
1.
CH2
1.1.
Joiner
1.2.
Splitter
1.3.
Working with strings in Guava
1.3.1.
Charsets
1.3.2.
Strings
1.3.3.
CharMatcher
1.4.
Preconditions
1.5.
Object utilities
1.5.1.
Getting help with the toString method
1.5.2.
Checking for null values
1.5.3.
Generating hash codes
1.5.4.
Implementing CompareTo
2.
Functional Programming with Guava
2.1.
Using the Function interface
2.1.1.
Guidelines for using the Function interface
2.2.
Using the Functions class
2.2.1.
Using the Functions.forMap method
2.2.2.
Using the Functions.compose method
2.3.
Using the Predicate interface
2.3.1.
An example of the Predicate interface
2.4.
Using the Predicates class
2.4.1.
Using the Predicates.and method
2.4.2.
Using the Predicates.or method
2.4.3.
Using the Predicates.not method
2.4.4.
Using the Predicates.compose method
2.5.
Using the supplier interface
2.5.1.
An example of the Supplier interface
2.6.
Using the Suppliers class
2.6.1.
Using the Suppliers.memoize method
2.6.2.
Using the Suppliers.memoizeWithExpiration method
3.
Working with Collections
3.1.
The FluentIterable class
3.1.1.
Using the FluentIterable.filter method
3.1.2.
Using the FluentIterable.transform method
3.2.
Lists
3.3.
Sets
3.3.1.
Using the Sets.difference method
3.3.2.
Using the Sets.symmetricDifference method
3.3.3.
Using the Sets.intersection method
3.3.4.
Using the Sets.union method
3.4.
Maps
3.4.1.
Using the Maps.uniqueIndex method
3.4.2.
Using the Maps.asMap method
3.4.3.
Transforming maps
3.5.
Multimaps
3.5.1.
ArrayListMultimap
3.5.2.
HashMultimap
3.6.
BiMap
3.6.1.
Using the BiMap.forcePut method
3.6.2.
Using the BiMap.inverse method
3.7.
Table
3.7.1.
Table operations
3.7.2.
Table views
3.8.
Range
3.8.1.
Ranges with arbitrary comparable objects
3.9.
Immutable collections
3.9.1.
Creating immutable collection instances
3.10.
Ordering
3.10.1.
Creating an Ordering instance
3.10.2.
Reverse sorting
3.10.3.
Accounting for null
3.10.4.
Secondary sorting
3.10.5.
Retrieving minimum and maximum values
4.
Concurrency
4.1.
Synchronizing threads
4.2.
Monitor
4.3.
Different Monitor access methods
4.4.
ListenableFuture
4.5.
Obtaining a ListenableFuture interface
4.6.
FutureCallback
4.6.1.
Using the FutureCallback
4.7.
SettableFuture
4.8.
AsyncFunction
4.9.
FutureFallback
4.10.
Futures
4.10.1.
Asynchronous Transforms
4.10.2.
Applying FutureFallbacks
4.11.
RateLimiter
5.
Guava Cache
5.1.
MapMaker
5.2.
Guava caches
5.2.1.
Cache
5.2.2.
LoadingCache
5.2.2.1.
Loading values
5.2.2.2.
Refreshing values in the cache
5.3.
CacheBuilder
5.4.
CacheBuilderSpec
5.5.
CacheLoader
5.6.
CacheStats
5.7.
RemovalListener
5.8.
RemovalNotification
5.9.
RemovalListeners
6.
EventBusClass
6.1.
EventBus
6.1.1.
Creating an EventBus instance
6.1.2.
Subscribing to events
6.1.3.
Posting the events
6.1.4.
Defining handler methods
6.1.5.
Concurrency
6.2.
Subscribe – An example
6.3.
Event Publishing – An example
6.4.
Finer-grained subscribing
6.5.
Unsubscribing to events
6.6.
AsyncEventBus
6.7.
DeadEvents
6.8.
Dependency injection
7.
Working with Files
7.1.
Copying a file
7.2.
Moving/renaming a File
7.3.
Working with files as strings
7.4.
Hashing a file
7.5.
Writing to files
7.5.1.
Writing and appending
7.6.
InputSupplier and OutputSupplier
7.6.1.
Sources and Sinks
7.7.
ByteSource
7.8.
ByteSink
7.9.
Copying from a ByteSource class to a ByteSink class
7.10.
ByteStreams and CharStreams
7.10.1.
Limiting the size of InputStreams
7.10.2.
Joining CharStreams
7.11.
Closer
7.12.
BaseEncoding
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Share on Twitter
Share on Google
Share on Facebook
Share on Weibo
Share on Instapaper
guava_ch
Transforming maps