Class Refs.ThreadSafeRefImpl<T>
- java.lang.Object
-
- org.glassfish.jersey.internal.util.collection.Refs.ThreadSafeRefImpl<T>
-
-
Constructor Summary
Constructors Constructor Description ThreadSafeRefImpl()
ThreadSafeRefImpl(T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
T
get()
Get the stored value.int
hashCode()
void
set(T value)
Set a new value.java.lang.String
toString()
-
-
-
Field Detail
-
reference
private volatile T reference
-
-
Constructor Detail
-
ThreadSafeRefImpl
ThreadSafeRefImpl()
-
ThreadSafeRefImpl
ThreadSafeRefImpl(T value)
-
-
Method Detail
-
set
public void set(T value) throws java.lang.IllegalStateException
Description copied from interface:Settable
Set a new value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-