Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and other utilities for
working with collections.
|
Modifier and Type | Field and Description |
---|---|
private MapMaker |
Interners.InternerBuilder.mapMaker |
Modifier and Type | Method and Description |
---|---|
MapMaker |
MapMaker.concurrencyLevel(int concurrencyLevel)
Guides the allowed concurrency among update operations.
|
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 |
MapMakerInternalMap.AbstractSerializationProxy.readMapMaker(java.io.ObjectInputStream in) |
(package private) MapMaker |
MapMaker.setKeyStrength(MapMakerInternalMap.Strength strength) |
(package private) MapMaker |
MapMaker.setValueStrength(MapMakerInternalMap.Strength strength) |
(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 |
---|---|
(package private) static <K,V> MapMakerInternalMap<K,V,? extends MapMakerInternalMap.InternalEntry<K,V,?>,?> |
MapMakerInternalMap.create(MapMaker builder)
Returns a fresh
MapMakerInternalMap as specified by the given builder . |
(package private) static <K> MapMakerInternalMap<K,MapMaker.Dummy,? extends MapMakerInternalMap.InternalEntry<K,MapMaker.Dummy,?>,?> |
MapMakerInternalMap.createWithDummyValues(MapMaker builder)
Returns a fresh
MapMakerInternalMap with MapMaker.Dummy values but otherwise as
specified by the given builder . |
(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 |
---|
InternerImpl(MapMaker mapMaker) |
MapMakerInternalMap(MapMaker builder,
MapMakerInternalMap.InternalEntryHelper<K,V,E,S> entryHelper)
Creates a new, empty map with the specified strategy, initial capacity and concurrency level.
|