|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Link.Type>
de.schlichtherle.truezip.util.Link.Type
public static enum Link.Type
A link type defines the terms and conditions for clearing its target and is a factory for
| Nested Class Summary | |
|---|---|
private static class |
Link.Type.SoftLink<T>
Adapts its subclass to the Link interface. |
private static class |
Link.Type.StrongLink<T>
A strong reference. |
private static class |
Link.Type.WeakLink<T>
Adapts its subclass to the Link interface. |
| Enum Constant Summary | |
|---|---|
SOFT
This reference type clears the target of a link according to the terms and conditions of 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 of a WeakReference. |
|
| Method Summary | ||
|---|---|---|
abstract
|
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. |
|
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Link.Type STRONG
public static final Link.Type SOFT
SoftReference.
public static final Link.Type WEAK
WeakReference.
| Method Detail |
|---|
public static Link.Type[] values()
for (Link.Type c : Link.Type.values()) System.out.println(c);
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 name
NullPointerException - if the argument is null
@NonNull
public abstract <T> Link<T> newLink(@Nullable
T target)
|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||