public abstract class ReadWriteCopier<T> extends java.lang.Object implements Copier<T>
Copier implementation that can be extended directly
 if the copying operation is the same irrespective of the action
 performed (read or write).| Constructor and Description | 
|---|
| ReadWriteCopier() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract T | copy(T obj)Template copy method to be implemented by sub-classes. | 
| T | copyForRead(T obj)Creates a copy of the instance passed in. | 
| T | copyForWrite(T obj)Creates a copy of the instance passed in. | 
public T copyForRead(T obj)
This method is invoked as a value is read from the cache.
copyForRead in interface Copier<T>obj - the instance to copyobj instancepublic T copyForWrite(T obj)
This method is invoked as a value is written to the cache.
copyForWrite in interface Copier<T>obj - the instance to copyobj instancepublic abstract T copy(T obj)
 It will be invoked when copyForRead(Object) or copyForWrite(Object) is invoked on
 Copier.
obj - the instance to copy