|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.impl.copy.ReadWriteCopier<T>
public abstract class ReadWriteCopier<T>
A helper copier implementation that can be extended directly if the copying operation is the same irrespective of the action performed(read or write).
Constructor Summary | |
---|---|
ReadWriteCopier()
|
Method Summary | |
---|---|
abstract T |
copy(T obj)
|
T |
copyForRead(T obj)
Creates a copy of the instance passed in. |
T |
copyForWrite(T obj)
Creates a copy of the instance passed in. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReadWriteCopier()
Method Detail |
---|
public T copyForRead(T obj)
Copier
copyForRead
in interface Copier<T>
obj
- the instance to copy
obj
instancepublic T copyForWrite(T obj)
Copier
copyForWrite
in interface Copier<T>
obj
- the instance to copy
obj
instancepublic abstract T copy(T obj)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |