static enum MapMaker.RemovalCause extends java.lang.Enum<MapMaker.RemovalCause>
Enum Constant and Description |
---|
COLLECTED
The entry was removed automatically because its key or value was garbage-collected.
|
EXPIRED
The entry's expiration timestamp has passed.
|
EXPLICIT
The entry was manually removed by the user.
|
REPLACED
The entry itself was not actually removed, but its value was replaced by the user.
|
SIZE
The entry was evicted due to size constraints.
|
Modifier and Type | Method and Description |
---|---|
static MapMaker.RemovalCause |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MapMaker.RemovalCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
(package private) abstract boolean |
wasEvicted()
|
public static final MapMaker.RemovalCause EXPLICIT
Map.remove(java.lang.Object)
, ConcurrentMap.remove(java.lang.Object, java.lang.Object)
, or Iterator.remove()
.public static final MapMaker.RemovalCause REPLACED
Map.put(K, V)
, Map.putAll(java.util.Map<? extends K, ? extends V>)
,
ConcurrentMap.replace(Object, Object)
, or
ConcurrentMap.replace(Object, Object, Object)
.public static final MapMaker.RemovalCause COLLECTED
MapMaker.softValues()
, MapMaker.weakKeys()
, or MapMaker.weakValues()
.public static final MapMaker.RemovalCause EXPIRED
MapMaker.expireAfterWrite(long, java.util.concurrent.TimeUnit)
or MapMaker.expireAfterAccess(long, java.util.concurrent.TimeUnit)
.public static final MapMaker.RemovalCause SIZE
MapMaker.maximumSize
.public static MapMaker.RemovalCause[] values()
for (MapMaker.RemovalCause c : MapMaker.RemovalCause.values()) System.out.println(c);
public static MapMaker.RemovalCause valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullabstract boolean wasEvicted()