
com.esotericsoftware.kryo.KryoCopyable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kryo Show documentation
Show all versions of kryo Show documentation
Fast, efficient Java serialization
The newest version!
package com.esotericsoftware.kryo;
/** 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 {@link Serializer#copy(Kryo, Object)} method.
* @author Nathan Sweet */
public interface KryoCopyable {
/** Returns a copy that has the same values as this object. Before Kryo can be used to copy child objects,
* {@link Kryo#reference(Object)} must be called with the copy to ensure it can be referenced by the child objects.
* @see Serializer#copy(Kryo, Object) */
public T copy (Kryo kryo);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy