Class DifferentChangeCombiner
- java.lang.Object
-
- de.aristaflow.adept2.model.common.changetracking.DifferentChangeCombiner
-
- All Implemented Interfaces:
ChangeCombiner
,Serializable
public class DifferentChangeCombiner extends Object implements ChangeCombiner
Combines different changes, for instance the changes refer to the different property values. For instance for such property values adding and removing is a treated asCHANGED
.- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.aristaflow.adept2.model.common.changetracking.ChangeCombiner
DIFFERENT_CHANGES, EQUAL_CHANGES, SIMILAR_CHANGES
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DifferentChangeCombiner()
Creates a new combiner for different changes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeType
combineChanges(ChangeType type1, ChangeType type2)
Combines two changes, for a property.
-
-
-
Method Detail
-
combineChanges
public ChangeType combineChanges(ChangeType type1, ChangeType type2)
Description copied from interface:ChangeCombiner
Combines two changes, for a property.- Specified by:
combineChanges
in interfaceChangeCombiner
- Parameters:
type1
- The first change to combine.null
is treated asNONE
.type2
- The second change to combine.null
is treated asNONE
.- Returns:
- The combination of the two changes relative to a property.
-
-