T
- Value type.public class Ref<T>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> Ref<T> |
create() |
static <T> Ref<T> |
create(T value) |
static <T> T |
deref(Ref<T> ref) |
T |
get() |
boolean |
isNull() |
void |
set(T value) |
boolean |
setIfNull(T value) |
java.lang.String |
toString() |
public Ref()
public Ref(T value)
public final boolean isNull()
public final T get()
public final void set(T value)
public final boolean setIfNull(T value)
public static <T> Ref<T> create()
public static <T> Ref<T> create(T value)
public static <T> T deref(Ref<T> ref)
public java.lang.String toString()
toString
in class java.lang.Object