Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Method and Description |
---|---|
MapMaker |
MapMaker.concurrencyLevel(int concurrencyLevel)
Guides the allowed concurrency among update operations.
|
(package private) MapMaker |
MapMaker.expireAfterAccess(long duration,
java.util.concurrent.TimeUnit unit)
Deprecated.
Caching functionality in
MapMaker has been moved to
CacheBuilder , with expireAfterAccess(long, java.util.concurrent.TimeUnit) being
replaced by CacheBuilder.expireAfterAccess(long, java.util.concurrent.TimeUnit) . Note that
CacheBuilder is simply an enhanced API for an implementation which was branched
from MapMaker . |
(package private) MapMaker |
MapMaker.expireAfterWrite(long duration,
java.util.concurrent.TimeUnit unit)
Deprecated.
Caching functionality in
MapMaker has been moved to
CacheBuilder , with expireAfterWrite(long, java.util.concurrent.TimeUnit) being
replaced by CacheBuilder.expireAfterWrite(long, java.util.concurrent.TimeUnit) . Note that CacheBuilder is simply an enhanced API for an implementation which was branched from
MapMaker . |
MapMaker |
MapMaker.initialCapacity(int initialCapacity)
Sets the minimum total size for the internal hash tables.
|
(package private) MapMaker |
MapMaker.keyEquivalence(Equivalence<java.lang.Object> equivalence)
Sets a custom
Equivalence strategy for comparing keys. |
(package private) MapMaker |
MapMaker.maximumSize(int size)
Deprecated.
Caching functionality in
MapMaker has been moved to
CacheBuilder , with maximumSize being
replaced by CacheBuilder.maximumSize . Note that CacheBuilder is simply an enhanced API for an implementation which was branched from
MapMaker . |
(package private) MapMaker |
MapMakerInternalMap.AbstractSerializationProxy.readMapMaker(java.io.ObjectInputStream in) |
(package private) MapMaker |
MapMaker.setKeyStrength(MapMakerInternalMap.Strength strength) |
(package private) MapMaker |
MapMaker.setValueStrength(MapMakerInternalMap.Strength strength) |
MapMaker |
MapMaker.softValues()
Deprecated.
Caching functionality in
MapMaker has been moved to CacheBuilder , with softValues() being replaced by CacheBuilder.softValues() . Note that CacheBuilder is simply
an enhanced API for an implementation which was branched from MapMaker . This
method is scheduled for removal in March 2015. |
(package private) static MapMaker |
Platform.tryWeakKeys(MapMaker mapMaker)
Configures the given map maker to use weak keys, if possible; does nothing
otherwise (i.e., in GWT).
|
MapMaker |
MapMaker.weakKeys()
Specifies that each key (not value) stored in the map should be wrapped in a
WeakReference (by default, strong references are used). |
MapMaker |
MapMaker.weakValues()
Specifies that each value (not key) stored in the map should be wrapped in a
WeakReference (by default, strong references are used). |
Modifier and Type | Method and Description |
---|---|
static <E> ConcurrentHashMultiset<E> |
ConcurrentHashMultiset.create(MapMaker mapMaker)
Creates a new, empty
ConcurrentHashMultiset using mapMaker
to construct the internal backing map. |
(package private) static MapMaker |
Platform.tryWeakKeys(MapMaker mapMaker)
Configures the given map maker to use weak keys, if possible; does nothing
otherwise (i.e., in GWT).
|
Constructor and Description |
---|
ComputingConcurrentHashMap(MapMaker builder,
Function<? super K,? extends V> computingFunction)
Creates a new, empty map with the specified strategy, initial capacity, load factor and
concurrency level.
|
ComputingMapAdapter(MapMaker mapMaker,
Function<? super K,? extends V> computingFunction) |
MapMakerInternalMap(MapMaker builder)
Creates a new, empty map with the specified strategy, initial capacity and concurrency level.
|
NullComputingConcurrentMap(MapMaker mapMaker,
Function<? super K,? extends V> computingFunction) |
NullConcurrentMap(MapMaker mapMaker) |