@Immutable public class Links extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
getTarget(Link<T> link)
Returns the nullable
target of the given link. |
static <T> Link<T> |
newLink(Link.Type type,
T target)
Returns a nullable typed link to the given target.
|
static <T> Link<T> |
newLink(T target)
Returns a nullable (strong) link to the given 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.@CheckForNull public static <T> Link<T> newLink(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> Link<T> newLink(@CheckForNull T target)
null if and only if target
is null.T - The type of the target.target - the nullable target.Copyright © 2005-2013 Schlichtherle IT Services. All Rights Reserved.