- Type Parameters:
T- the type of object to be copied
- All Known Subinterfaces:
Type<T>,TypeResolver
- All Known Implementing Classes:
Configuration,Imports,TypeWrapper
public interface Copyable<T>
A generic alternative to Cloneable. This interface provides a mechanism
for creating new branches of a data structure, similar to Git's branching
mechanism. Particularly in the engine, creating copies ensures that:
- All the data from the parent context (a
Knowledge) is available to spawned sessions. - Changes to the copied data (such as adding new rules to
RuleSessioninstances) do not affect the parentKnowledgecontext.
-
Method Summary
-
Method Details
-
copyOf
T copyOf()
-