public enum ReferenceMode extends java.lang.Enum<ReferenceMode>
Enum Constant and Description |
---|
FORCE_WEAK
Same as weak reference except Objects that can not be changed
tracked (Deferred Change Detection) will not be prevented from being
garbage collected.
|
HARD
References to Objects will be through hard references.
|
WEAK
References to Objects that support active attribute change tracking
(enabled through weaving or by the developer)will be held by weak
references.
|
Modifier and Type | Method and Description |
---|---|
static ReferenceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceMode HARD
public static final ReferenceMode WEAK
WeakReference
AttributeChangeTrackingPolicy
public static final ReferenceMode FORCE_WEAK
public static ReferenceMode[] values()
for (ReferenceMode c : ReferenceMode.values()) System.out.println(c);
public static ReferenceMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null