Package | Description |
---|---|
com.google.common.cache |
This package contains caching utilities.
|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
com.google.common.util.concurrent |
Concurrency utilities.
|
com.google.common.util.concurrent.testing |
Modifier and Type | Class and Description |
---|---|
class |
ForwardingCache<K,V>
A cache which forwards all its method calls to another cache.
|
static class |
ForwardingCache.SimpleForwardingCache<K,V>
A simplified version of
ForwardingCache where subclasses can pass in an already
constructed Cache as the delegate. |
class |
ForwardingLoadingCache<K,V>
A cache which forwards all its method calls to another cache.
|
static class |
ForwardingLoadingCache.SimpleForwardingLoadingCache<K,V>
A simplified version of
ForwardingLoadingCache where subclasses can pass in an already
constructed LoadingCache as the delegate. |
(package private) static class |
LocalCache.LoadingSerializationProxy<K,V>
Serializes the configuration of a LocalCache, reconstituting it as an LoadingCache using
CacheBuilder upon deserialization.
|
(package private) static class |
LocalCache.ManualSerializationProxy<K,V>
Serializes the configuration of a LocalCache, reconstituting it as a Cache using CacheBuilder
upon deserialization.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
AbstractBiMap<K,V>
A general-purpose bimap implementation using any two backing
Map instances. |
(package private) class |
AbstractBiMap.BiMapEntry |
private class |
AbstractBiMap.EntrySet |
(package private) static class |
AbstractBiMap.Inverse<K,V>
The inverse of any other
AbstractBiMap subclass. |
private class |
AbstractBiMap.KeySet |
private class |
AbstractBiMap.ValueSet |
private class |
AbstractNavigableMap.DescendingMap |
(package private) class |
DescendingMultiset<E>
A skeleton implementation of a descending multiset.
|
class |
EnumBiMap<K extends java.lang.Enum<K>,V extends java.lang.Enum<V>>
A
BiMap backed by two EnumMap instances. |
class |
EnumHashBiMap<K extends java.lang.Enum<K>,V>
A
BiMap backed by an EnumMap instance for keys-to-values, and a HashMap
instance for values-to-keys. |
class |
EvictingQueue<E>
A non-blocking queue which automatically evicts elements from the head of the queue when
attempting to add new elements onto the queue and it is full.
|
(package private) static class |
FilteredKeyMultimap.AddRejectingList<K,V> |
(package private) static class |
FilteredKeyMultimap.AddRejectingSet<K,V> |
(package private) class |
FilteredKeyMultimap.Entries |
(package private) class |
FilteredKeySetMultimap.EntrySet |
class |
ForwardingCollection<E>
A collection which forwards all its method calls to another collection.
|
class |
ForwardingConcurrentMap<K,V>
A concurrent map which forwards all its method calls to another concurrent map.
|
class |
ForwardingDeque<E>
A deque which forwards all its method calls to another deque.
|
class |
ForwardingIterator<T>
An iterator which forwards all its method calls to another iterator.
|
class |
ForwardingList<E>
A list which forwards all its method calls to another list.
|
class |
ForwardingListIterator<E>
A list iterator which forwards all its method calls to another list iterator.
|
class |
ForwardingListMultimap<K,V>
A list multimap which forwards all its method calls to another list multimap.
|
class |
ForwardingMap<K,V>
A map which forwards all its method calls to another map.
|
class |
ForwardingMapEntry<K,V>
A map entry which forwards all its method calls to another map entry.
|
class |
ForwardingMultimap<K,V>
A multimap which forwards all its method calls to another multimap.
|
class |
ForwardingMultiset<E>
A multiset which forwards all its method calls to another multiset.
|
class |
ForwardingNavigableMap<K,V>
A navigable map which forwards all its method calls to another navigable map.
|
protected class |
ForwardingNavigableMap.StandardDescendingMap
A sensible implementation of
NavigableMap.descendingMap() in terms of the methods of this
NavigableMap . |
class |
ForwardingNavigableSet<E>
A navigable set which forwards all its method calls to another navigable set.
|
protected class |
ForwardingNavigableSet.StandardDescendingSet
A sensible implementation of
NavigableSet.descendingSet() in terms of the other methods
of NavigableSet , notably including NavigableSet.descendingIterator() . |
class |
ForwardingQueue<E>
A queue which forwards all its method calls to another queue.
|
class |
ForwardingSet<E>
A set which forwards all its method calls to another set.
|
class |
ForwardingSetMultimap<K,V>
A set multimap which forwards all its method calls to another set multimap.
|
class |
ForwardingSortedMap<K,V>
A sorted map which forwards all its method calls to another sorted map.
|
class |
ForwardingSortedMultiset<E>
A sorted multiset which forwards all its method calls to another sorted multiset.
|
protected class |
ForwardingSortedMultiset.StandardDescendingMultiset
A skeleton implementation of a descending multiset view.
|
class |
ForwardingSortedSet<E>
A sorted set which forwards all its method calls to another sorted set.
|
class |
ForwardingSortedSetMultimap<K,V>
A sorted set multimap which forwards all its method calls to another sorted set multimap.
|
class |
ForwardingTable<R,C,V>
A table which forwards all its method calls to another table.
|
class |
ImmutableClassToInstanceMap<B>
A
ClassToInstanceMap whose contents will never change, with many other important
properties detailed at ImmutableCollection . |
(package private) static class |
MapMakerInternalMap.AbstractSerializationProxy<K,V>
The actual object that gets serialized.
|
private static class |
MapMakerInternalMap.SerializationProxy<K,V>
The actual object that gets serialized.
|
(package private) static class |
Maps.DescendingMap<K,V> |
private class |
Maps.FilteredEntryMap.EntrySet |
private static class |
Maps.UnmodifiableBiMap<K,V> |
(package private) static class |
Maps.UnmodifiableEntries<K,V> |
(package private) static class |
Maps.UnmodifiableEntrySet<K,V> |
(package private) static class |
Maps.UnmodifiableNavigableMap<K,V> |
private static class |
Multimaps.UnmodifiableListMultimap<K,V> |
private static class |
Multimaps.UnmodifiableMultimap<K,V> |
private static class |
Multimaps.UnmodifiableSetMultimap<K,V> |
private static class |
Multimaps.UnmodifiableSortedSetMultimap<K,V> |
(package private) static class |
Multisets.UnmodifiableMultiset<E> |
class |
MutableClassToInstanceMap<B>
A mutable class-to-instance map backed by an arbitrary user-provided map.
|
private static class |
Sets.CartesianSet<E> |
(package private) static class |
Sets.DescendingSet<E> |
(package private) static class |
Sets.UnmodifiableNavigableSet<E> |
(package private) static class |
Tables.UnmodifiableRowSortedMap<R,C,V> |
private static class |
Tables.UnmodifiableTable<R,C,V> |
(package private) class |
TreeRangeSet.AsRanges |
(package private) class |
UnmodifiableSortedMultiset<E>
Implementation of
Multisets.unmodifiableSortedMultiset(SortedMultiset) , split out into
its own file so it can be GWT emulated (to deal with the differing elementSet() types in GWT and
non-GWT). |
(package private) class |
WellBehavedMap<K,V>
Workaround for EnumMap
bug.
|
Modifier and Type | Class and Description |
---|---|
class |
ImmutableTypeToInstanceMap<B>
A type-to-instance map backed by an
ImmutableMap . |
class |
MutableTypeToInstanceMap<B>
A mutable type-to-instance map.
|
private static class |
MutableTypeToInstanceMap.UnmodifiableEntry<K,V> |
private class |
TypeToken.ClassSet |
private class |
TypeToken.InterfaceSet |
class |
TypeToken.TypeSet
The set of interfaces and classes that
T is or is a subtype of. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCheckedFuture<V,X extends java.lang.Exception>
Deprecated.
CheckedFuture cannot properly support the chained operations that are the
primary goal of ListenableFuture . CheckedFuture also encourages users to
rethrow exceptions from one thread in another thread, producing misleading stack traces.
Additionally, it has a surprising policy about which exceptions to map and which to leave
untouched. Guava users who want a CheckedFuture can fork the classes for their own
use, possibly specializing them to the particular exception type they use. We recommend that
most people use ListenableFuture and perform any exception wrapping themselves. This
class is scheduled for removal from Guava in February 2018. |
private class |
AbstractScheduledService.CustomScheduler.ReschedulableCallable
A callable class that can reschedule itself using a
AbstractScheduledService.CustomScheduler . |
class |
ForwardingBlockingDeque<E>
A
BlockingDeque which forwards all its method calls to another BlockingDeque . |
class |
ForwardingBlockingQueue<E>
A
BlockingQueue which forwards all its method calls to another BlockingQueue . |
class |
ForwardingCheckedFuture<V,X extends java.lang.Exception>
Deprecated.
CheckedFuture cannot properly support the chained operations that are the
primary goal of ListenableFuture . CheckedFuture also encourages users to
rethrow exceptions from one thread in another thread, producing misleading stack traces.
Additionally, it has a surprising policy about which exceptions to map and which to leave
untouched. Guava users who want a CheckedFuture can fork the classes for their own
use, possibly specializing them to the particular exception type they use. We recommend that
most people use ListenableFuture and perform any exception wrapping themselves. This
class is scheduled for removal from Guava in February 2018. |
static class |
ForwardingCheckedFuture.SimpleForwardingCheckedFuture<V,X extends java.lang.Exception>
Deprecated.
CheckedFuture cannot properly support the chained operations that are the
primary goal of ListenableFuture . CheckedFuture also encourages users to
rethrow exceptions from one thread in another thread, producing misleading stack traces.
Additionally, it has a surprising policy about which exceptions to map and which to leave
untouched. Guava users who want a CheckedFuture can fork the classes for their own
use, possibly specializing them to the particular exception type they use. We recommend
that most people use ListenableFuture and perform any exception wrapping
themselves. This class is scheduled for removal from Guava in February 2018. |
class |
ForwardingExecutorService
An executor service which forwards all its method calls to another executor service.
|
class |
ForwardingFuture<V>
A
Future which forwards all its method calls to another future. |
static class |
ForwardingFuture.SimpleForwardingFuture<V>
A simplified version of
ForwardingFuture where subclasses can pass in an already
constructed Future as the delegate. |
class |
ForwardingListenableFuture<V>
A
ListenableFuture which forwards all its method calls to another future. |
static class |
ForwardingListenableFuture.SimpleForwardingListenableFuture<V>
A simplified version of
ForwardingListenableFuture where subclasses can pass in an
already constructed ListenableFuture as the delegate. |
class |
ForwardingListeningExecutorService
A listening executor service which forwards all its method calls to another listening executor
service.
|
private static class |
Futures.MappingCheckedFuture<V,X extends java.lang.Exception>
A checked future that uses a function to map from exceptions to the appropriate checked type.
|
private static class |
JdkFutureAdapters.ListenableFutureAdapter<V>
An adapter to turn a
Future into a ListenableFuture . |
private static class |
MoreExecutors.ScheduledListeningDecorator.ListenableScheduledTask<V> |
Modifier and Type | Class and Description |
---|---|
private static class |
SameThreadScheduledExecutorService.ImmediateScheduledFuture<V> |