|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.common.collect.GenericMapMaker<K0,V0>
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@Beta @GwtCompatible(emulated=true) public abstract class GenericMapMaker<K0,V0>
A class exactly like MapMaker
, except restricted in the types of maps
it can build. This type is returned by MapMaker.evictionListener(com.google.common.collect.MapEvictionListener
to
prevent the user from trying to build a map that's incompatible with the key
and value types of the listener.
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public abstract GenericMapMaker<K0,V0> initialCapacity(int initialCapacity)
MapMaker.initialCapacity
.
@Beta public abstract GenericMapMaker<K0,V0> maximumSize(int maximumSize)
MapMaker.maximumSize
.
@GwtIncompatible(value="java.util.concurrent.ConcurrentHashMap concurrencyLevel") public abstract GenericMapMaker<K0,V0> concurrencyLevel(int concurrencyLevel)
MapMaker.concurrencyLevel
.
@GwtIncompatible(value="java.lang.ref.WeakReference") public abstract GenericMapMaker<K0,V0> weakKeys()
MapMaker.weakKeys()
.
@GwtIncompatible(value="java.lang.ref.SoftReference") public abstract GenericMapMaker<K0,V0> softKeys()
MapMaker.softKeys()
.
@GwtIncompatible(value="java.lang.ref.WeakReference") public abstract GenericMapMaker<K0,V0> weakValues()
MapMaker.weakValues()
.
@GwtIncompatible(value="java.lang.ref.SoftReference") public abstract GenericMapMaker<K0,V0> softValues()
MapMaker.softValues()
.
public abstract GenericMapMaker<K0,V0> expiration(long duration, TimeUnit unit)
MapMaker.expiration(long, java.util.concurrent.TimeUnit)
.
@Beta public abstract GenericMapMaker<K0,V0> expireAfterWrite(long duration, TimeUnit unit)
MapMaker.expireAfterWrite(long, java.util.concurrent.TimeUnit)
.
@Beta @GwtIncompatible(value="To be supported") public abstract GenericMapMaker<K0,V0> expireAfterAccess(long duration, TimeUnit unit)
MapMaker.expireAfterAccess(long, java.util.concurrent.TimeUnit)
.
public abstract <K extends K0,V extends V0> ConcurrentMap<K,V> makeMap()
MapMaker.makeMap()
.
public abstract <K extends K0,V extends V0> ConcurrentMap<K,V> makeComputingMap(Function<? super K,? extends V> computingFunction)
MapMaker.makeComputingMap(com.google.common.base.Function super K, ? extends V>)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |