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 booleanequals(java.lang.Object obj)Tget()Get the stored value.inthashCode()voidset(T value)Set a new value.java.lang.StringtoString()
-
-
-
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:SettableSet a new value.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-