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 java.lang.Object
Deprecated.This class existed only to support the generic paramterization necessary for the caching functionality inMapMaker
. That functionality has been moved toCacheBuilder
, which is a properly generified class and thus needs no "Generic" equivalent; simple useCacheBuilder
naturally. For general migration instructions, see the MapMaker Migration Guide. This class is scheduled for removal in Guava 16.0.A class exactly likeMapMaker
, 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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description abstract GenericMapMaker<K0,V0>
concurrencyLevel(int concurrencyLevel)
Deprecated.abstract GenericMapMaker<K0,V0>
initialCapacity(int initialCapacity)
Deprecated.abstract <K extends K0,V extends V0>
java.util.concurrent.ConcurrentMap<K,V>makeMap()
Deprecated.SeeMapMaker.makeMap()
.abstract GenericMapMaker<K0,V0>
softValues()
Deprecated.Caching functionality inMapMaker
has been moved toCacheBuilder
, withsoftValues()
being replaced byCacheBuilder.softValues()
.abstract GenericMapMaker<K0,V0>
weakKeys()
Deprecated.SeeMapMaker.weakKeys()
.abstract GenericMapMaker<K0,V0>
weakValues()
Deprecated.
-
-
-
Method Detail
-
initialCapacity
public abstract GenericMapMaker<K0,V0> initialCapacity(int initialCapacity)
Deprecated.
-
concurrencyLevel
public abstract GenericMapMaker<K0,V0> concurrencyLevel(int concurrencyLevel)
Deprecated.
-
weakKeys
@GwtIncompatible("java.lang.ref.WeakReference") public abstract GenericMapMaker<K0,V0> weakKeys()
Deprecated.SeeMapMaker.weakKeys()
.
-
weakValues
@GwtIncompatible("java.lang.ref.WeakReference") public abstract GenericMapMaker<K0,V0> weakValues()
Deprecated.
-
softValues
@Deprecated @GwtIncompatible("java.lang.ref.SoftReference") public abstract GenericMapMaker<K0,V0> softValues()
Deprecated.Caching functionality inMapMaker
has been moved toCacheBuilder
, withsoftValues()
being replaced byCacheBuilder.softValues()
. Note thatCacheBuilder
is simply an enhanced API for an implementation which was branched fromMapMaker
. This method is scheduled for deletion in August 2014.
-
makeMap
public abstract <K extends K0,V extends V0> java.util.concurrent.ConcurrentMap<K,V> makeMap()
Deprecated.SeeMapMaker.makeMap()
.
-
-