Interface Copyable<T>

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 RuleSession instances) do not affect the parent Knowledge context.
  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • copyOf

      T copyOf()