public static enum Link.Type extends Enum<Link.Type>
| Enum Constant and Description |
|---|
PHANTOM
This reference type clears the target of a link according to the
terms and conditions for a
PhantomReference. |
SOFT
This reference type clears the target of a link according to the
terms and conditions for a
SoftReference. |
STRONG
This reference type never clears the target of a link.
|
WEAK
This reference type clears the target of a link according to the
terms and conditions for a
WeakReference. |
| Modifier and Type | Method and Description |
|---|---|
<T> Link<T> |
newLink(T target)
Returns a new typed link to the given nullable target.
|
static Link.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Link.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Link.Type PHANTOM
PhantomReference.public static final Link.Type SOFT
SoftReference.public static final Link.Type STRONG
public static final Link.Type WEAK
WeakReference.public <T> Link<T> newLink(@Nullable T target)
public static Link.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 Link.Type[] values()
for (Link.Type c : Link.Type.values()) System.out.println(c);
Copyright © 2012–2018 Schlichtherle IT Services. All rights reserved.