|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the instance to copypublic interface Copier<T>
Defines the contract used to copy type instances.
The copied object's class must be preserved. The following must always be true:
object.getClass().equals( myCopier.copyForRead(object).getClass() )
object.getClass().equals( myCopier.copyForWrite(object).getClass() )
Method Summary | |
---|---|
T |
copyForRead(T obj)
Creates a copy of the instance passed in. |
T |
copyForWrite(T obj)
Creates a copy of the instance passed in. |
Method Detail |
---|
T copyForRead(T obj)
This method is invoked as a value is read from the cache.
obj
- the instance to copy
obj
instanceT copyForWrite(T obj)
This method is invoked as a value is written to the cache.
obj
- the instance to copy
obj
instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |