public static enum ReferenceReaper.ReferenceType extends Enum<ReferenceReaper.ReferenceType>
Reference
types.Enum Constant and Description |
---|
PHANTOM
Indicates a
PhantomReference . |
SOFT
Indicates a
SoftReference . |
WEAK
Indicates a
WeakReference . |
Modifier and Type | Method and Description |
---|---|
static ReferenceReaper.ReferenceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceReaper.ReferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceReaper.ReferenceType WEAK
WeakReference
.public static final ReferenceReaper.ReferenceType SOFT
SoftReference
.public static final ReferenceReaper.ReferenceType PHANTOM
PhantomReference
.public static ReferenceReaper.ReferenceType[] values()
for (ReferenceReaper.ReferenceType c : ReferenceReaper.ReferenceType.values()) System.out.println(c);
public static ReferenceReaper.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