Class EqualChangeCombiner
- java.lang.Object
- 
- de.aristaflow.adept2.model.common.changetracking.EqualChangeCombiner
 
- 
- All Implemented Interfaces:
- ChangeCombiner,- Serializable
 
 public class EqualChangeCombiner extends Object implements ChangeCombiner Combines equal changes, for instance the changes refer to the same property value. For instance for such a property value adding and removing is a no-op as well as removing and adding.- Author:
- Ulrich Kreher
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from interface de.aristaflow.adept2.model.common.changetracking.ChangeCombinerDIFFERENT_CHANGES, EQUAL_CHANGES, SIMILAR_CHANGES
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedEqualChangeCombiner()Creates a new combiner for equal changes.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeTypecombineChanges(ChangeType type1, ChangeType type2)Combines two changes, for a property.
 
- 
- 
- 
Method Detail- 
combineChangespublic ChangeType combineChanges(ChangeType type1, ChangeType type2) Description copied from interface:ChangeCombinerCombines two changes, for a property.- Specified by:
- combineChangesin interface- ChangeCombiner
- Parameters:
- type1- The first change to combine.- nullis treated as- NONE.
- type2- The second change to combine.- nullis treated as- NONE.
- Returns:
- The combination of the two changes relative to a property.
 
 
- 
 
-