Package org.ehrbase.openehr.sdk.util
Interface Freezable<O extends Freezable<O>>
- All Superinterfaces:
Cloneable
Allows for dynamically creating a tree data structure and then freezing it by creating an immutable clone.
In order to edit a frozen model, a "thawed" mutable clone can be produced.
Mutable models may contain frozen values, but frozen values must only consist of frozen and immutable objects.
In order to edit a frozen model, a "thawed" mutable clone can be produced.
Mutable models may contain frozen values, but frozen values must only consist of frozen and immutable objects.
-
Method Summary
Modifier and TypeMethodDescriptionclone()static <F extends Freezable<F>>
Fclone(F object, UnaryOperator<F> cloneOp) frozen()static <F extends Freezable<F>>
Ffrozen(F object, UnaryOperator<F> immutableCloneOp) booleanisFrozen()thawed()