Class EqualChangeCombiner
java.lang.Object
de.aristaflow.adept2.model.common.changetracking.EqualChangeCombiner
- All Implemented Interfaces:
ChangeCombiner,Serializable
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:
-
Field Summary
Fields inherited from interface de.aristaflow.adept2.model.common.changetracking.ChangeCombiner
DIFFERENT_CHANGES, EQUAL_CHANGES, SIMILAR_CHANGES -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new combiner for equal changes. -
Method Summary
Modifier and TypeMethodDescriptioncombineChanges(ChangeType type1, ChangeType type2) Combines two changes, for a property.
-
Constructor Details
-
EqualChangeCombiner
protected EqualChangeCombiner()Creates a new combiner for equal changes.
-
-
Method Details
-
combineChanges
Description copied from interface:ChangeCombinerCombines two changes, for a property.- Specified by:
combineChangesin interfaceChangeCombiner- Parameters:
type1- The first change to combine.nullis treated asNONE.type2- The second change to combine.nullis treated asNONE.- Returns:
- The combination of the two changes relative to a property.
-