| Package | Description |
|---|---|
| de.aristaflow.adept2.model.common.changetracking |
| Modifier and Type | Method and Description |
|---|---|
ChangeType |
ChangeTrackingMap.change(T propertyValue,
ChangeType changeType)
Tracks a change of the designated type for the designated property value
and combines the change with an existing one.
|
ChangeType |
ChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2)
Combines two changes, for a property.
|
ChangeType |
DifferentChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2) |
ChangeType |
EqualChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2) |
ChangeType |
SimilarChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2) |
static ChangeType |
ChangeType.getChangeType(java.lang.Object oldValue,
java.lang.Object newValue)
Gets the change type for the designated values, that is
if the old value is
null but the new value not, the
change type will be ADDED,
if the new value is null but the old value not, the
change type will be REMOVED,
if both values are equal (with respect to
Object.equals(Object)), NONE will be returned ,
otherwise it will be CHANGED
. |
static ChangeType |
ChangeType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ChangeType[] |
ChangeType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<T,ChangeType> |
ChangedProperty.getChangedInnerElements()
Gets the map of all inner elements of the property that have changed, for
instance indexes into a list of values.
|
| Modifier and Type | Method and Description |
|---|---|
ChangeType |
ChangeTrackingMap.change(T propertyValue,
ChangeType changeType)
Tracks a change of the designated type for the designated property value
and combines the change with an existing one.
|
ChangeType |
ChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2)
Combines two changes, for a property.
|
ChangeType |
DifferentChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2) |
ChangeType |
EqualChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2) |
ChangeType |
SimilarChangeCombiner.combineChanges(ChangeType type1,
ChangeType type2) |
| Constructor and Description |
|---|
ChangedProperty(java.lang.String property,
java.util.Map<T,ChangeType> changedInnerElements)
Creates a new changed property of the designated type with the designated
map tracking inner elements.
|
ChangeTrackingMap(ChangeCombiner changeCombiner,
java.util.Map<? extends T,ChangeType> m)
Creates a new
ChangeTrackingMap with the designated change
combiner containing the content of the designated map. |