Package com.oracle.coherence.common.base
Class IdentityHolder<V>
- java.lang.Object
-
- com.oracle.coherence.common.base.SimpleHolder<V>
-
- com.oracle.coherence.common.base.IdentityHolder<V>
-
- All Implemented Interfaces:
Holder<V>,Serializable
public class IdentityHolder<V> extends SimpleHolder<V>
A Holder implementation which additionally provides an equals/hashCode implementation based on the held object's identity.- Author:
- mf 2017.03.27
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.common.base.SimpleHolder
m_value
-
-
Constructor Summary
Constructors Constructor Description IdentityHolder()Construct an IdentityHolder holding nothing.IdentityHolder(V v)Construct an IdentityHolder holding the specified object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object oThat)inthashCode()-
Methods inherited from class com.oracle.coherence.common.base.SimpleHolder
get, set
-
-
-
-
Constructor Detail
-
IdentityHolder
public IdentityHolder()
Construct an IdentityHolder holding nothing.
-
IdentityHolder
public IdentityHolder(V v)
Construct an IdentityHolder holding the specified object.- Parameters:
v- the object to hold
-
-