Interface PlanningCloneable<T>
- Type Parameters:
T- The type of object being cloned.
public interface PlanningCloneable<T>
Used to construct new instances of an object when there is no suitable constructor.
Used during planning cloning to create an "empty"/"blank" instance
whose fields/items will be set to the planning clone of the original's fields/items.
This interface is internal. Do not use it in user code.
-
Method Summary
-
Method Details
-
createNewInstance
T createNewInstance()Creates a new "empty"/"blank" instance. If thePlanningCloneableis aCollectionorMap, the returned instance should be empty and modifiable.- Returns:
- never null, a new instance with the same type as the object being cloned.
-