Package com._1c.g5.aef2.changes
Class CompoundChange
java.lang.Object
com._1c.g5.aef2.changes.CompoundChange
- All Implemented Interfaces:
IChange
,ICompoundChange
Represents a compound change.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the provided change to this compound change.void
apply()
Applies the change.
-
Constructor Details
-
CompoundChange
public CompoundChange()
-
-
Method Details
-
apply
public void apply()Description copied from interface:IChange
Applies the change. -
getChanges
- Specified by:
getChanges
in interfaceICompoundChange
- Returns:
- changes this compound change contains.
-
addChange
Adds the provided change to this compound change.- Parameters:
change
- change to add.
-
getSimplifiedChange
- Returns:
- simplified change, if it possible to simplify this compound change.
If this compound change if empty, returns
IChange.NO_CHANGE
. If there is only one change, returns this change. In other cases, returns this compound change.
-