Package com._1c.g5.aef2.changes
Class CompoundChange
- java.lang.Object
-
- com._1c.g5.aef2.changes.CompoundChange
-
- All Implemented Interfaces:
IChange,ICompoundChange
public class CompoundChange extends Object implements ICompoundChange
Represents a compound change.- See Also:
IChange
-
-
Constructor Summary
Constructors Constructor Description CompoundChange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChange(IChange change)Adds the provided change to this compound change.voidapply()Applies the change.Iterable<IChange>getChanges()IChangegetSimplifiedChange()
-
-
-
Method Detail
-
apply
public void apply()
Description copied from interface:IChangeApplies the change.
-
getChanges
public Iterable<IChange> getChanges()
- Specified by:
getChangesin interfaceICompoundChange- Returns:
- changes this compound change contains.
-
addChange
public void addChange(IChange change)
Adds the provided change to this compound change.- Parameters:
change- change to add.
-
getSimplifiedChange
public IChange 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.
-
-