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 |
---|---|
boolean |
in(Reference.Type... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(Reference.Type v1)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(Reference.Type v1,
Reference.Type v2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
in(Reference.Type v1,
Reference.Type v2,
Reference.Type v3)
Determine whether this instance is equal to one of the given instances.
|
static boolean |
isFull(EnumSet<Reference.Type> set)
Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.
|
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 nullpublic static boolean isFull(EnumSet<Reference.Type> set)
set
- the settrue
if the set is full, false
otherwisepublic boolean in(Reference.Type v1)
v1
- the first instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(Reference.Type v1, Reference.Type v2)
v1
- the first instancev2
- the second instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(Reference.Type v1, Reference.Type v2, Reference.Type v3)
v1
- the first instancev2
- the second instancev3
- the third instancetrue
if one of the instances matches this one, false
otherwisepublic boolean in(Reference.Type... values)
values
- the possible valuestrue
if one of the instances matches this one, false
otherwiseCopyright © 2015 JBoss, a division of Red Hat, Inc.