Serializable
, Comparable<Reference.Type>
public static enum Reference.Type extends Enum<Reference.Type>
Enum Constant | 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 | 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 © 2018 JBoss by Red Hat. All rights reserved.