| Modifier and Type | Method and Description |
|---|---|
static <T> Ref<T> |
emptyRef()
Constructs a new empty mutable
Ref instance. |
static <T> Ref<T> |
immutableRef(T value)
Constructs a new immutable
Ref instance referencing the given
input reference. |
static <T> Ref<T> |
of(T value)
Constructs a new mutable
Ref instance referencing the given
input reference. |
public static <T> Ref<T> of(T value)
Ref instance referencing the given
input reference.T - type of the referenced instancevalue - reference of the newly constructed referenceRef instance referencing the given
input reference.immutableRef(java.lang.Object),
emptyRef()public static <T> Ref<T> emptyRef()
Ref instance.T - type of the referenced instanceRef instanceimmutableRef(java.lang.Object),
of(java.lang.Object)public static <T> Ref<T> immutableRef(T value)
Ref instance referencing the given
input reference.
Invoking a Settable.set(java.lang.Object) on the returned instance
will result in a IllegalStateException being thrown.T - type of the referenced instancevalue - reference of the newly constructed referenceRef instance referencing the given
input reference.emptyRef(),
of(java.lang.Object)Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.