public enum ReferenceType extends java.lang.Enum<ReferenceType>
| Enum Constant and Description |
|---|
Hard
Hard reference.
|
Soft
Soft reference.
|
Weak
Weak reference.
|
| Modifier and Type | Method and Description |
|---|---|
<T> IReference<T> |
makeReference(T obj)
Make a reference from an object.
|
static ReferenceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceType Hard
public static final ReferenceType Soft
SoftReferencepublic static final ReferenceType Weak
WeakReferencepublic static ReferenceType[] values()
for (ReferenceType c : ReferenceType.values()) System.out.println(c);
public static ReferenceType 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@NotNull public <T> IReference<T> makeReference(@NotNull T obj)
T - object typeobj - basic object