Interface CanCopy<T>

Type Parameters:
T - the type of object that can be copied (typically the implementing class)
All Known Subinterfaces:
Capability, Condition, ConditionalResult, ConditionGroup, DefaultResult, Fork, Function, Join, Model<SELF,ID>, MutableWorkflowDefinition, Register, Result<E>, State, Transition, Validator, WorkflowDefinition

public interface CanCopy<T>
Interface for objects that can create copies of themselves. CanCopy provides the contract for creating copies of workflow model elements, enabling safe manipulation and modification of workflow definitions.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a copy of this object.
  • Method Details

    • copy

      T copy()
      Creates a copy of this object. The returned object should be independent of the original, allowing modifications without side effects.
      Returns:
      a copy of this object