public class SerializableRef<T> extends Object implements Serializable
A ref which makes it possible to pass references through a serializable roundtrip. Value can only be read once per ref, across all serialized copies.
| Modifier and Type | Method and Description |
|---|---|
static <T> SerializableRef<T> |
create(T value) |
T |
value() |
public static <T> SerializableRef<T> create(T value)
public T value()