Package org.ehcache.impl.copy
Class IdentityCopier<T>
java.lang.Object
org.ehcache.impl.copy.ReadWriteCopier<T>
org.ehcache.impl.copy.IdentityCopier<T>
- All Implemented Interfaces:
org.ehcache.spi.copy.Copier<T>
Copier implementation that simply returns the value passed in, doing in fact no
copy at all.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis implementation returns the instance passed in as-is.static <T> org.ehcache.spi.copy.Copier<T>Methods inherited from class org.ehcache.impl.copy.ReadWriteCopier
copyForRead, copyForWrite
-
Constructor Details
-
IdentityCopier
public IdentityCopier()
-
-
Method Details
-
identityCopier
public static <T> org.ehcache.spi.copy.Copier<T> identityCopier() -
copy
This implementation returns the instance passed in as-is.- Specified by:
copyin classReadWriteCopier<T>- Parameters:
obj- the instance to copy- Returns:
- a copied instance, depending on the implementation
-