Class Refs
java.lang.Object
org.glassfish.jersey.internal.util.collection.Refs
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Ref<T> emptyRef()Construct a new empty mutableRefinstance.static <T> Ref<T> immutableRef(T value) Construct a new immutableRefinstance referencing the given input value.static <T> Ref<T> of(T value) Construct a new mutableRefinstance referencing the given input value.static <T> Ref<T> Construct a new empty mutable thread-safeRefinstance.static <T> Ref<T> threadSafe(T value) Construct a new mutable thread-safeRefinstance referencing the given input value.
-
Constructor Details
-
Refs
private Refs()
-
-
Method Details
-
of
-
emptyRef
-
threadSafe
-
threadSafe
-
immutableRef
Construct a new immutableRefinstance referencing the given input value. Invoking aSettable.set(java.lang.Object)on the returned instance will result in aIllegalStateExceptionbeing thrown.- Type Parameters:
T- type of the referenced instance.- Parameters:
value- value of the newly constructed reference.- Returns:
- a new immutable
Refinstance referencing the given input value.
-