Package com.oracle.coherence.common.base
Class SimpleHolder<V>
- java.lang.Object
-
- com.oracle.coherence.common.base.SimpleHolder<V>
-
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
Holder<V>
,Serializable
- Direct Known Subclasses:
IdentityHolder
,SimpleHolder
public class SimpleHolder<V> extends Object implements Holder<V>, Serializable
SimpleHolder is a basic implementation of the Holder interface.There value is simply held by a non-volatile reference, thus SimpleHolder does not provide any inter-thread visibility guarantees.
- Author:
- mf 2010.12.02
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleHolder()
Construct a SimpleHolder with no value.SimpleHolder(V value)
Construct a SimpleHolder with an initial value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get()
Return the held object.void
set(V value)
Specify the held object.
-