public static enum ConcurrentReferenceHashMap.ReferenceType extends Enum<ConcurrentReferenceHashMap.ReferenceType>
| Enum Constant and Description |
|---|
SOFT
Use
SoftReferences. |
WEAK
Use
WeakReferences. |
| 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
SoftReferences.public static final ConcurrentReferenceHashMap.ReferenceType WEAK
WeakReferences.public 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 nullCopyright © 2009–2023 The Apache Software Foundation. All rights reserved.