Index
A
- @AllowConcurrentEvent annotation / Concurrency
- @Autowired annotation / Dependency injection
- acquire method / RateLimiter
- addToList method / Monitor
- apply method / Using the Function interface, Using the Predicate interface
- arbitrary comparable objects
- Ranges with / Ranges with arbitrary comparable objects
- ArrayListMultimap
- about / ArrayListMultimap
- creating, methods for / ArrayListMultimap
- Ascii class method / Working with strings in Guava
- assertThat statements / Using the FluentIterable.filter method
- AsyncEventBus
- about / AsyncEventBus
- instance, creating / Creating an AsyncEventBus instance
- AsyncFunction class
- about / AsyncFunction
- AsyncFunction interface / Asynchronous Transforms
- about / AsyncFunction
- applying / Applying FutureFallbacks
- asynchronous method / RemovalListeners
B
- BaseEncoding
- about / BaseEncoding
- beans / Dependency injection
- BiMap
- about / BiMap
- .forcePut method, using / Using the BiMap.forcePut method
- .inverse method, using / Using the BiMap.inverse method
- BiMap.forcePut method
- using / Using the BiMap.forcePut method
- BiMap.inverse method
- using / Using the BiMap.inverse method
- BloomFilter
- about / BloomFilter
- in nutshell / BloomFilter in a nutshell
- Funnel interface / Funnels and PrimitiveSinks
- PrimitiveSinks / Funnels and PrimitiveSinks
- creating / Creating a BloomFilter instance
- book object / LoadingCache
- BuySellTradeExecutor class / Finer-grained subscribing
- ByteSink class
- about / ByteSink, Copying from a ByteSource class to a ByteSink class
- ByteSource class, copying from / Copying from a ByteSource class to a ByteSink class
- byteSink object / Copying from a ByteSource class to a ByteSink class
- ByteSource
- about / Sources and Sinks
- ByteSource class
- about / ByteSource
- copying from, to ByteSink class / Copying from a ByteSource class to a ByteSink class
- ByteStreams
- about / ByteStreams and CharStreams
- ByteStreams.limit method / Limiting the size of InputStreams
C
- @Component annotation / Dependency injection
- CacheBuilder class
- about / CacheBuilder
- CacheBuilders / Guava caches
- CacheBuilderSpec class
- about / CacheBuilderSpec
- Cache interface
- about / Cache
- CacheLoader.from method / CacheLoader
- CacheLoader class
- about / CacheLoader
- CacheStats class
- about / CacheStats
- Callable instance / Cache, Obtaining the Root Cause Throwable
- CharMatcher class / Using the Splitter class
- using / Using the CharMatcher class
- Charsets class
- using / Using the Charsets class
- about / Using the Charsets class
- CharsSource
- about / Sources and Sinks
- CharStreams
- about / ByteStreams and CharStreams
- joining / Joining CharStreams
- CharStreams.copy method / Joining CharStreams
- checkArgument (Boolean expression, Object message) method / Using the Preconditions class
- checkElementIndex (int index, int size, Object message) method / Using the Preconditions class
- checkNotNull (T object, Object message) method / Using the Preconditions class
- checkState (Boolean expression, Object message) method / Using the Preconditions class
- CityByPopulation comparator / Reverse sorting
- Closer class
- joining / Closer
- Comparator parameter / Using the FluentIterable.transform method
- CompareTo
- implementing / Implementing CompareTo
- compareTo method / Ranges with arbitrary comparable objects
- ComposedPredicateSuplier class / An example of the Supplier interface
- concurrencyLevel() / MapMaker
- Condition.signal() / Synchronizing threads
- Condition.signalAll() method / Synchronizing threads
D
- DeadEvents
- about / DeadEvents
- dependency injection
- about / Dependency injection
E
- emptyToNull method / Using the Strings class
- enterWhen method / Monitor
- equals method / Using the Function interface
- EventBus
- about / EventBus
- instance, creating / Creating an EventBus instance
- events, subscribing to / Subscribing to events
- events, posting / Posting the events
- handler methods, defining / Defining handler methods
- concurrency / Concurrency
- EventBus.register method / Subscribing to events
- event publishing
- example / Event Publishing – An example
- events
- subscribing to / Subscribing to events
- posting / Posting the events
- unsubscribing to / Unsubscribing to events
- ExecutorService instance / ListenableFuture
F
- file
- copying / Copying a file
- moving / Moving/renaming a File
- renaming / Moving/renaming a File
- as strings / Working with files as strings
- hashing / Hashing a file
- writing to / Writing to files, Writing and appending
- appending to / Writing and appending
- FileInputStream object / Getting the chain of Throwables
- Files.asByteSource method / ByteSource
- Files.move method / Moving/renaming a File
- Files.readLines method / Working with files as strings
- Files.toByteArray method / ByteSource
- FileWriter instance / Using the Joiner class
- Finer-grained subscribing
- about / Finer-grained subscribing
- firstNonNull method / Checking for null values
- FluentIterable / Using the FluentIterable.transform method
- FluentIterable.filter method
- FluentIterable.from() method / Using the FluentIterable.filter method
- FluentIterable.from method / Using the FluentIterable.transform method
- FluentIterable.transform method
- FluentIterable class
- about / The FluentIterable class
- FluentIterable.filter method, using / Using the FluentIterable.filter method
- FluentIterable.transform method, using / Using the FluentIterable.transform method
- FluentIterable instance / Using the FluentIterable.transform method
- forcePut method / Using the BiMap.forcePut method
- forMap method / Using the Functions.forMap method
- Function interface / Introducing Google Guava, Using the Function interface
- about / Using the Function interface
- using, guidelines for / Guidelines for using the Function interface
- Functions.compose method / Using the Functions.compose method
- Functions.forMap method
- Functions class
- using / Using the Functions class
- Functions.forMap method, using / Using the Functions.forMap method
- Functions.compose method, using / Using the Functions.compose method
- Funnel interface
- about / Funnels and PrimitiveSinks
- Future.get method / AsyncFunction, Getting the chain of Throwables
- FutureCallback interface
- about / FutureCallback
- using / Using the FutureCallback
- FutureFallback interface
- about / FutureFallback
- applying / Applying FutureFallbacks
- Futures
- about / Futures
- Asynchronous Transforms / Asynchronous Transforms
- FutureFallbacks, applying / Applying FutureFallbacks
- Futures.addCallback method / Using the FutureCallback, Futures
G
- getCause() method / RemovalNotification
- getEvent method / DeadEvents
- get method / Using the Supplier interface
- goodFastHash method / General hash functions
- Google Collections Library
- about / Introducing Google Guava
- Google Guava
- about / Introducing Google Guava
- using, cases / The case for using Guava
- Gradle
- Guava, using with / Using Guava with Maven or Gradle
- greatestOf method / Retrieving minimum and maximum values
- Guava
- installing, steps for / Installing Guava
- downloading / Installing Guava
- API docs / Installing Guava
- using, with Maven / Using Guava with Maven or Gradle
- using, with Gradle / Using Guava with Maven or Gradle
- strings with / Working with strings in Guava
- Guava caches
- Cache interface / Cache
- LoadingCache interface / LoadingCache
H
- H2 (embedded database) v1.3.170
- handler methods
- defining / Defining handler methods
- hashCode method / Generating hash codes
- hash codes
- generating / Generating hash codes
- hash functions
- creating / Creating proper hash functions
- checksum algorithms / Checksum hash functions
- general / General hash functions
- cryptographic hash function / Cryptographic hash functions
- Hashing class / Creating proper hash functions
- HashMultimap
- about / HashMultimap
I
- immutable collections
- about / Immutable collections
- instances, creating / Creating immutable collection instances
- InputStreams
- size, limiting / Limiting the size of InputStreams
- InputSupplier
- about / InputSupplier and OutputSupplier
- InputSupplier object / Joining CharStreams
- invalidate(key) method / Cache
- invalidateAll() method / Cache
- invalidateAll(Iterable<?> keys) method / Cache
- isNullOrEmpty method / Using the Strings class
- isPresent method / Creating an Optional instance
- Iterable instances / The FluentIterable class
- Iterable object / CacheLoader
- Iterables.contains method / Using the FluentIterable.filter method
- Iterables.get method / Working with files as strings
J
- java.util.concurrent.Executor instance / AsyncEventBus
- java.util.Date object / Using the Function interface
- Joiner class
- about / Using the Joiner class
- JSR-305
- about / Using Guava with Maven or Gradle
- JUnit v4.11
L
- LineProcessor callback / Creating a BloomFilter instance
- LineProcessor instance / Working with files as strings
- LinkedHashMap instance / Time for a review
- ListenableFuture.addListener method / ListenableFuture, Obtaining a ListenableFuture interface
- ListenableFuture.get method / AsyncFunction
- ListenableFuture class
- about / ListenableFuture
- obtaining / Obtaining a ListenableFuture interface
- Lists
- about / Lists
- .partition method, using / Using the Lists.partition method
- Lists.newArrayList() method / Using the FluentIterable.filter method
- Lists.partition method
- using / Using the Lists.partition method
- LoadingCache interface
- about / Guava caches, LoadingCache
- values, loading / Loading values
- values in cache, refreshing / Refreshing values in the cache
- lookup.apply() method / Using the Functions.compose method
- Lucene v4.2
M
- MapJoiner class / Using the Splitter class
- MapJoiner method / Using the Joiner class
- MapMaker class
- about / MapMaker
- Maps
- about / Maps
- .uniqueIndex method, using / Using the Maps.uniqueIndex method
- .asMap method, using / Using the Maps.asMap method
- transforming / Transforming maps
- Maps.asMap method / Using the Maps.asMap method
- using / Using the Maps.asMap method
- Maps.EntryTransformer interface / Transforming maps
- Maps.toMap method / Using the Maps.asMap method
- Maps.transformEntries method / Transforming maps
- Maps.uniqueIndex method
- MapSplitter class / Using the Splitter class, Time for a review
- Maven
- Guava, using with / Using Guava with Maven or Gradle
- memoizeWithExpiration method / Using the Suppliers.memoizeWithExpiration method
- Monitor.enterIf method / Different Monitor access methods
- Monitor.enter method / Different Monitor access methods
- Monitor.enterWhen method / Different Monitor access methods
- Monitor.tryEnterIf method / Different Monitor access methods
- Monitor.tryEnter method / Different Monitor access methods
- Monitor class
- about / Monitor
- best practices / Monitor best practice
- access methods / Different Monitor access methods
- Multimaps
- about / Multimaps
- ArrayListMultimap / ArrayListMultimap
- HashMultimap / HashMultimap
- murmur hash instance / General hash functions
N
- newLinkedHashMap() method / Time for a review
- notifyAll() method / Synchronizing threads
- NullPointerException error / Using the Joiner class
- nullsFirst method / Accounting for null
- nullToEmpty method / Using the Strings class
- null values
- checking for / Checking for null values
O
- Object.toString() / Using the Joiner class
- onSuccess method / FutureCallback
- Optional.fromNullable method / Creating an Optional instance
- Optional class / Optional
- optional instance
- about / Optional
- creating, steps for / Creating an Optional instance
- ordering
- about / Ordering
- instance, creating / Creating an Ordering instance
- sorting, reversing / Reverse sorting
- null, accounting for / Accounting for null
- sorting, secondary / Secondary sorting
- maximum values, retrieving / Retrieving minimum and maximum values
- minimum values, retrieving / Retrieving minimum and maximum values
- Ordering.from method / Creating an Ordering instance
- Ordering.greatestOf method / Retrieving minimum and maximum values
- OutputSupplier
- about / InputSupplier and OutputSupplier
- OutputSupplier instance / Joining CharStreams
P
- padStart method / Using the Strings class
- permit / RateLimiter
- PopulationPredicate / Using the Predicates class
- Preconditions class
- using / Using the Preconditions class
- Predicate / Using the FluentIterable.filter method
- Predicate interface
- using / Using the Predicate interface
- example / An example of the Predicate interface
- Predicates.and method
- Predicates.compose method / Using the Predicates class, An example of the Supplier interface, Ranges with arbitrary comparable objects
- Predicates.not method
- using / Using the Predicates.not method
- Predicates class
- using / Using the Predicates class
- Predicates.and method, using / Using the Predicates.and method
- Predicates.or method, using / Using the Predicates.or method
- Predicates.not method, using / Using the Predicates.not method
- Predicates.compose method, using / Using the Predicates.compose method
- PrimitiveSink
- about / Funnels and PrimitiveSinks
R
- Range
- about / Range
- with arbitrary comparable objects / Ranges with arbitrary comparable objects
- RateLimiter class
- about / RateLimiter
- recordStats() call / CacheStats
- ReentrantLock class / Synchronizing threads
- RemovalCause enum
- COLLECTED / RemovalNotification
- EXPIRED / RemovalNotification
- EXPLICIT / RemovalNotification
- REPLACED / RemovalNotification
- SIZE / RemovalNotification
- RemovalListener class
- adding / CacheBuilderSpec
- about / RemovalListener, RemovalListeners
- RemovalNotification class / RemovalNotification
- RemovalNotification instance / RemovalNotification
- RemovalListeners.asynchronous method / RemovalListeners
- RemovalNotification class
- about / RemovalNotification
- returning() method / Cache
S
- @Subscribe annotation / Subscribing to events
- Sets
- about / Sets, Using the Sets.difference method
- .difference method, using / Using the Sets.difference method
- .symmetricDifference method, using / Using the Sets.symmetricDifference method
- .intersection method, using / Using the Sets.intersection method
- .union method, using / Using the Sets.union method
- Sets.difference method
- using / Using the Sets.difference method
- Sets.intersection method
- Sets.symmetricDifference method
- Sets.union method
- using / Using the Sets.union method
- SettableFuture class
- about / SettableFuture
- SetView / Using the Sets.difference method
- SimpleDateFormat class / Using the Function interface
- SimpleTradeExecutor class / Finer-grained subscribing
- SimpleTradeExecutor constructor / Event Publishing – An example
- skipNulls class / Using the Joiner class
- SoftReferences / MapMaker, CacheBuilder
- softValues() method / MapMaker
- source code
- getting / Getting the source code for the book
- Splitter class
- about / Using the Splitter class
- Splitter instance / Using the Splitter class
- Splitter instance / Using the Splitter class
- Splitter object / Using the Splitter class
- Spring Java config Version 3.2
- StandardCharsets class / Using the Charsets class
- stateFunction.apply() method / Using the Functions.compose method
- String.split method / Using the Splitter class
- StringBuilder class / Using the Joiner class
- StringBuilder instance / Using the Joiner class
- strings
- files, working with as / Working with files as strings
- Strings class
- using / Using the Strings class
- Supplier.get() method / CacheLoader
- supplier interface / Introducing Google Guava
- Supplier interface
- using / Using the Supplier interface
- example / An example of the Supplier interface
- Suppliers.memoize method
- Suppliers.memoizeWithExpiration method
- Suppliers class
- using / Using the Suppliers class
- Suppliers.memoize method, using / Using the Suppliers.memoize method
- Suppliers.memoizeWithExpiration method, using / Using the Suppliers.memoizeWithExpiration method
T
- Table
- about / Table
- operations / Table operations
- views / Table views
- threads
- synchronizing / Synchronizing threads
- Throwable object / Using the FutureCallback
- Throwables
- about / Throwables
- chain, getting / Getting the chain of Throwables
- Root Cause Throwable, obtaining / Obtaining the Root Cause Throwable
- Throwables.getRootCause method / Obtaining the Root Cause Throwable
- toMap method / Using the FluentIterable.transform method
- toSet method / Using the FluentIterable.transform method
- toSortedList method / Using the FluentIterable.transform method
- toSortedSet method / Using the FluentIterable.transform method
- toString method
- TradeAccountEvent instance / Event Publishing – An example
- transform method / Using the FluentIterable.transform method
- trimAndCollapseFrom method / Using the CharMatcher class
- trimResults method / Using the Splitter class
- tryAcquire method / RateLimiter
U
- UnsupportedEncodingException error / Using the Charsets class
- useForNull() method / Using the Joiner class
- useForNull method / Using the Joiner class
W
- withKeyValueSeparator method / Using the Joiner class