Class DiffNode.TimeDependentState<L extends Label>
java.lang.Object
org.variantsync.diffdetective.variation.diff.DiffNode.TimeDependentState<L>
Bundles all the state that may be different before and after an edit.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
parent
The parentsDiffNodebefore and after the edit. This array has to be indexed byTime.ordinal()Invariant: IffgetParent(time) != nullthengetParent(time).getChildOrder(time).contains(this). -
children
The children before and after the edit. This array has to be indexed byTime.ordinal()Invariant: IffgetChildOrder(time).contains(child)thenchild.getParent(time) == this. -
projection
Cache for before and after projections. It stores the projection node at each time so that only one instance ofProjectionperTimeis ever created. This array has to be indexed byTime.ordinal()This field is required to allow identity tests of
Projections with==.
-
-
Constructor Details
-
TimeDependentState
public TimeDependentState()
-