public final class Ref<T> extends Object
| Constructor and Description |
|---|
Ref()
Creates an instance that holds the null value.
|
Ref(T obj)
Creates an instance that holds the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Gets the value held.
|
static <T> void |
set(Ref<T> ref,
T obj)
Null-safe setter.
|
void |
set(T obj)
Sets the value to hold.
|
public Ref()
public Ref(T obj)
Copyright © 2015 EVRYTHNG Ltd London / Zurich. All rights reserved.