Package com.google.common.collect
Class GenericMapMaker<K0,V0>
java.lang.Object
com.google.common.collect.GenericMapMaker<K0,V0>
- Type Parameters:
K0- the base type for all key types of maps built by this map makerV0- the base type for all value types of maps built by this map maker
- Direct Known Subclasses:
MapMaker
@Beta
@Deprecated
@GwtCompatible(emulated=true)
public abstract class GenericMapMaker<K0,V0>
extends Object
Deprecated.
A class exactly like
MapMaker, except restricted in the types of maps it can build.
For the most part, you should probably just ignore the existence of this class.- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptionabstract GenericMapMaker<K0, V0> concurrencyLevel(int concurrencyLevel) Deprecated.SeeMapMaker.concurrencyLevel.abstract GenericMapMaker<K0, V0> initialCapacity(int initialCapacity) Deprecated.SeeMapMaker.initialCapacity.abstract <K extends K0,V extends V0>
ConcurrentMap<K, V> makeMap()Deprecated.SeeMapMaker.makeMap().abstract GenericMapMaker<K0, V0> Deprecated.Caching functionality inMapMakerhas been moved toCacheBuilder, withsoftValues()being replaced byCacheBuilder.softValues().abstract GenericMapMaker<K0, V0> weakKeys()Deprecated.SeeMapMaker.weakKeys().abstract GenericMapMaker<K0, V0> Deprecated.
-
Method Details
-
initialCapacity
Deprecated.SeeMapMaker.initialCapacity. -
concurrencyLevel
Deprecated.SeeMapMaker.concurrencyLevel. -
weakKeys
Deprecated.SeeMapMaker.weakKeys(). -
weakValues
Deprecated. -
softValues
@Deprecated @GwtIncompatible("java.lang.ref.SoftReference") public abstract GenericMapMaker<K0,V0> softValues()Deprecated.Caching functionality inMapMakerhas been moved toCacheBuilder, withsoftValues()being replaced byCacheBuilder.softValues(). Note thatCacheBuilderis simply an enhanced API for an implementation which was branched fromMapMaker. This method is scheduled for deletion in August 2014. -
makeMap
Deprecated.SeeMapMaker.makeMap().
-
MapMaker. That functionality has been moved toCacheBuilder, which is a properly generified class and thus needs no "Generic" equivalent; simple useCacheBuildernaturally. For general migration instructions, see the MapMaker Migration Guide. This class is scheduled for removal in Guava 16.0.