|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.internal.util.collection.Refs
public final class Refs
A collection of reference factory & utility methods.
| Method Summary | ||
|---|---|---|
static
|
emptyRef()
Constructs a new empty mutable Ref instance. |
|
static
|
immutableRef(T value)
Constructs a new immutable Ref instance referencing the given
input reference. |
|
static
|
of(T value)
Constructs a new mutable Ref instance referencing the given
input reference. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 reference
Ref instance referencing the given
input reference.immutableRef(java.lang.Object),
emptyRef()public static <T> Ref<T> emptyRef()
Ref instance.
T - type of the referenced instance
Ref 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 Ref.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 reference
Ref instance referencing the given
input reference.emptyRef(),
of(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||