public abstract class MutableMutabilityPlan<T> extends Object implements MutabilityPlan<T>
Mutability plan for mutable objects
| Constructor and Description |
|---|
MutableMutabilityPlan() |
| Modifier and Type | Method and Description |
|---|---|
T |
assemble(Serializable cached)
Assemble a previously disassembled value.
|
T |
deepCopy(T value)
Return a deep copy of the value.
|
protected abstract T |
deepCopyNotNull(T value) |
Serializable |
disassemble(T value)
Return a "disassembled" representation of the value.
|
boolean |
isMutable()
Can the internal state of instances of <tt>T</tt> be changed?
|
public boolean isMutable()
MutabilityPlanCan the internal state of instances of <tt>T</tt> be changed?
isMutable in interface MutabilityPlan<T>public Serializable disassemble(T value)
MutabilityPlanReturn a "disassembled" representation of the value. This is used to push values onto the
second level cache. Compliment to MutabilityPlan.assemble(java.io.Serializable)
disassemble in interface MutabilityPlan<T>value - The value to disassembleMutabilityPlan.assemble(java.io.Serializable)public T assemble(Serializable cached)
MutabilityPlanAssemble a previously disassembled value. This is used when pulling values from the
second level cache. Compliment to MutabilityPlan.disassemble(T)
assemble in interface MutabilityPlan<T>cached - The disassembled stateMutabilityPlan.disassemble(T)public final T deepCopy(T value)
MutabilityPlanReturn a deep copy of the value.
deepCopy in interface MutabilityPlan<T>value - The value to deep copyCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.