public interface ChangeCombiner
extends java.io.Serializable
ADDED and REMOVED combined are a
no-op. Obviously this does not apply to different property values were the
combination of ADDED and REMOVED is
CHANGED.| Modifier and Type | Field and Description |
|---|---|
static ChangeCombiner |
DIFFERENT_CHANGES
The changes are different and therefore most combinations of changes lead
to
CHANGED. |
static ChangeCombiner |
EQUAL_CHANGES
The changes are equal, for instance
ADDED and
REMOVED as well as REMOVED and ADDED
are no-ops. |
static long |
serialVersionUID
Generated ID for serialisation.
|
static ChangeCombiner |
SIMILAR_CHANGES
The changes are similar, for instance
ADDED and
REMOVED is a no-op but REMOVED and
ADDED is CHANGED. |
| Modifier and Type | Method and Description |
|---|---|
ChangeType |
combineChanges(ChangeType type1,
ChangeType type2)
Combines two changes, for a property.
|
static final long serialVersionUID
static final ChangeCombiner EQUAL_CHANGES
ADDED and
REMOVED as well as REMOVED and ADDED
are no-ops.static final ChangeCombiner SIMILAR_CHANGES
ADDED and
REMOVED is a no-op but REMOVED and
ADDED is CHANGED.static final ChangeCombiner DIFFERENT_CHANGES
CHANGED.ChangeType combineChanges(ChangeType type1, ChangeType type2)
type1 - The first change to combine. null is treated as
NONE.type2 - The second change to combine. null is treated as
NONE.