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.@Beta @Deprecated @GwtCompatible(emulated=true) abstract class GenericMapMaker<K0,V0> extends java.lang.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 | Class and Description |
---|---|
(package private) static class |
GenericMapMaker.NullListener
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
(package private) MapMaker.RemovalListener<K0,V0> |
removalListener
Deprecated.
|
Constructor and Description |
---|
GenericMapMaker()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract GenericMapMaker<K0,V0> |
concurrencyLevel(int concurrencyLevel)
Deprecated.
|
(package private) abstract GenericMapMaker<K0,V0> |
expireAfterAccess(long duration,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
(package private) abstract GenericMapMaker<K0,V0> |
expireAfterWrite(long duration,
java.util.concurrent.TimeUnit unit)
Deprecated.
|
(package private) <K extends K0,V extends V0> |
getRemovalListener()
Deprecated.
|
abstract GenericMapMaker<K0,V0> |
initialCapacity(int initialCapacity)
Deprecated.
|
(package private) abstract GenericMapMaker<K0,V0> |
keyEquivalence(Equivalence<java.lang.Object> equivalence)
Deprecated.
|
(package private) abstract <K extends K0,V extends V0> |
makeComputingMap(Function<? super K,? extends V> computingFunction)
Deprecated.
|
(package private) abstract <K,V> MapMakerInternalMap<K,V> |
makeCustomMap()
Deprecated.
|
abstract <K extends K0,V extends V0> |
makeMap()
Deprecated.
See
MapMaker.makeMap() . |
(package private) abstract GenericMapMaker<K0,V0> |
maximumSize(int maximumSize)
Deprecated.
See
MapMaker.maximumSize . |
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 removal in March 2015. |
abstract GenericMapMaker<K0,V0> |
weakKeys()
Deprecated.
See
MapMaker.weakKeys() . |
abstract GenericMapMaker<K0,V0> |
weakValues()
Deprecated.
|
@GwtIncompatible(value="To be supported") MapMaker.RemovalListener<K0,V0> removalListener
@GwtIncompatible(value="To be supported") abstract GenericMapMaker<K0,V0> keyEquivalence(Equivalence<java.lang.Object> equivalence)
public abstract GenericMapMaker<K0,V0> initialCapacity(int initialCapacity)
abstract GenericMapMaker<K0,V0> maximumSize(int maximumSize)
MapMaker.maximumSize
.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 removal in March 2015.abstract GenericMapMaker<K0,V0> expireAfterWrite(long duration, java.util.concurrent.TimeUnit unit)
@GwtIncompatible(value="To be supported") abstract GenericMapMaker<K0,V0> expireAfterAccess(long duration, java.util.concurrent.TimeUnit unit)
@GwtIncompatible(value="To be supported") <K extends K0,V extends V0> MapMaker.RemovalListener<K,V> getRemovalListener()
public abstract <K extends K0,V extends V0> java.util.concurrent.ConcurrentMap<K,V> makeMap()
MapMaker.makeMap()
.@GwtIncompatible(value="MapMakerInternalMap") abstract <K,V> MapMakerInternalMap<K,V> makeCustomMap()