|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.truezip.util.Links
@ThreadSafe public class Links
Provides static utility methods for links.
| Constructor Summary | |
|---|---|
private |
Links()
|
| Method Summary | ||
|---|---|---|
static
|
getTarget(Link<T> link)
Returns the nullable target of the given link. |
|
static
|
newLink(Link.Type type,
T target)
Returns a nullable typed link to the given target. |
|
static
|
newLink(T target)
Returns a nullable (strong) link to the given target. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private Links()
| Method Detail |
|---|
@CheckForNull
public static <T> Link<T> newLink(@CheckForNull
T target)
null if and only if target
is null.
T - The type of the target.target - the nullable target.
@CheckForNull
public static <T> Link<T> newLink(@NonNull
Link.Type type,
@CheckForNull
T target)
null if and only if target
is null.
T - The type of the target.target - the nullable target.
@CheckForNull
public static <T> T getTarget(@CheckForNull
Link<T> link)
target of the given link.
The returned target is null if and only if either the given
link is null or its target is null.
T - The type of the target.link - a nullable link.
target of the given link.
|
TrueZIP Kernel 7.0-rc2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||