Package org.ehcache.spi.copy
Interface Copier<T>
-
- Type Parameters:
T- the type of the instance to copy
public 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TcopyForRead(T obj)Creates a copy of the instance passed in.TcopyForWrite(T obj)Creates a copy of the instance passed in.
-