public enum ReferenceType extends Enum<ReferenceType>
| 枚举常量和说明 |
|---|
SOFT
Indicates a
SoftReference should be used |
STRONG
Indicates a normal Java strong reference should be used
|
WEAK
Indicates a
WeakReference should be used |
public static final ReferenceType STRONG
public static final ReferenceType WEAK
WeakReference should be usedpublic static final ReferenceType SOFT
SoftReference should be usedpublic static ReferenceType[] values()
for (ReferenceType c : ReferenceType.values()) System.out.println(c);
public static ReferenceType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.