org.ehcache.spi.copy
Interface Copier<T>

Type Parameters:
T - the type of the instance to copy
All Known Implementing Classes:
IdentityCopier, ReadWriteCopier, SerializingCopier, SoftLockValueCombinedCopier

public interface Copier<T>

Interface defining the contract used to make a copy of types.


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

copyForRead

T copyForRead(T obj)
Creates a copy of the instance passed in.

Parameters:
obj - the instance to copy
Returns:
the copy of the obj instance

copyForWrite

T copyForWrite(T obj)
Creates a copy of the instance passed in.

Parameters:
obj - the instance to copy
Returns:
the copy of the obj instance