public static enum Reference.Type extends Enum<Reference.Type>
Enum Constant and Description |
---|
NULL
A
null reference. |
PHANTOM
A phantom reference.
|
SOFT
A soft reference.
|
STRONG
A strong reference.
|
WEAK
A weak reference.
|
Modifier and Type | Method and Description |
---|---|
static Reference.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Reference.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Reference.Type STRONG
public static final Reference.Type WEAK
public static final Reference.Type PHANTOM
public static final Reference.Type SOFT
public static final Reference.Type NULL
null
reference.public static Reference.Type[] values()
for (Reference.Type c : Reference.Type.values()) System.out.println(c);
public static Reference.Type 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 © 2015 JBoss, a division of Red Hat, Inc.