public class FieldChange extends Object
This class encapsulates a single value change for a given field.
Constructor and Description |
---|
FieldChange(String fieldId,
Object oldValue,
Object newValue)
Creates a new field change with the given old and new value.
|
FieldChange(String fieldId,
Object oldValue,
Object newValue,
Object delta)
Creates a new field change with the given old and new value and the explicit delta value.
|
Modifier and Type | Method and Description |
---|---|
Object |
getDelta() |
String |
getFieldId() |
Object |
getNewValue() |
Object |
getOldValue() |
String |
toString() |
public FieldChange(String fieldId, Object oldValue, Object newValue)
Creates a new field change with the given old and new value. The delta value is assumed to be the new value.
fieldId
- the id of the affected fieldoldValue
- the old valuenewValue
- the new valuepublic FieldChange(String fieldId, Object oldValue, Object newValue, Object delta)
Creates a new field change with the given old and new value and the explicit delta value. The delta value is primarily interesting when the old and new value are Collections classes and determining the difference is complex or even impossible.
fieldId
- the id of the affected fieldoldValue
- the old valuenewValue
- the new valuedelta
- the delta that leads from the old value to the new valueCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.