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 makerMapMaker. That functionality has been moved to CacheBuilder, which is a properly generified class and thus needs no
"Generic" equivalent; simple use CacheBuilder naturally. For general migration
instructions, see the MapMaker Migration
Guide. This class is scheduled for removal in Guava 16.0.@Beta @Deprecated @GwtCompatible(emulated=true) public abstract class GenericMapMaker<K0,V0> extends Object
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.| Modifier and Type | Method and Description |
|---|---|
abstract GenericMapMaker<K0,V0> |
concurrencyLevel(int concurrencyLevel)
Deprecated.
|
abstract GenericMapMaker<K0,V0> |
initialCapacity(int initialCapacity)
Deprecated.
|
abstract <K extends K0,V extends V0> |
makeMap()
Deprecated.
See
MapMaker.makeMap(). |
abstract GenericMapMaker<K0,V0> |
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 deletion in August 2014. |
abstract GenericMapMaker<K0,V0> |
weakKeys()
Deprecated.
See
MapMaker.weakKeys(). |
abstract GenericMapMaker<K0,V0> |
weakValues()
Deprecated.
|
public abstract GenericMapMaker<K0,V0> initialCapacity(int initialCapacity)
public abstract GenericMapMaker<K0,V0> concurrencyLevel(int concurrencyLevel)
@GwtIncompatible(value="java.lang.ref.WeakReference") public abstract GenericMapMaker<K0,V0> weakKeys()
MapMaker.weakKeys().@GwtIncompatible(value="java.lang.ref.WeakReference") public abstract GenericMapMaker<K0,V0> weakValues()
@Deprecated @GwtIncompatible(value="java.lang.ref.SoftReference") public abstract GenericMapMaker<K0,V0> softValues()
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 deletion in August 2014.public abstract <K extends K0,V extends V0> ConcurrentMap<K,V> makeMap()
MapMaker.makeMap().Copyright © 2010-2013. All Rights Reserved.