public static enum ConcurrentReferenceHashMap.ReferenceType extends Enum<ConcurrentReferenceHashMap.ReferenceType>
Enum Constant and Description |
---|
SOFT
Use
SoftReference s |
WEAK
Use
WeakReference s |
Modifier and Type | Method and Description |
---|---|
static ConcurrentReferenceHashMap.ReferenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConcurrentReferenceHashMap.ReferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConcurrentReferenceHashMap.ReferenceType SOFT
SoftReference
spublic static final ConcurrentReferenceHashMap.ReferenceType WEAK
WeakReference
spublic static ConcurrentReferenceHashMap.ReferenceType[] values()
for (ConcurrentReferenceHashMap.ReferenceType c : ConcurrentReferenceHashMap.ReferenceType.values()) System.out.println(c);
public static ConcurrentReferenceHashMap.ReferenceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null