Package com.esotericsoftware.kryo
Interface KryoCopyable<T>
-
public interface KryoCopyable<T>
Allows implementing classes to perform their own copying. Hand written copying can be more efficient in some cases.This method is used instead of the registered serializer's
Serializer.copy(Kryo, Object)
method.- Author:
- Nathan Sweet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
copy(Kryo kryo)
Returns a copy that has the same values as this object.
-
-
-
Method Detail
-
copy
T copy(Kryo kryo)
Returns a copy that has the same values as this object. Before Kryo can be used to copy child objects,Kryo.reference(Object)
must be called with the copy to ensure it can be referenced by the child objects.- See Also:
Serializer.copy(Kryo, Object)
-
-