T
- the type of the value which has a difference@JsonData public abstract class AttributeDifference<T> extends java.lang.Object implements java.lang.Comparable<AttributeDifference<?>>, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AttributeDifference.TYPE
This enum is used to identify the runtime type of an
AttributeDifference . |
Constructor and Description |
---|
AttributeDifference(AttributeDifference.TYPE instanceType,
T oldValue,
T newValue,
java.lang.String messageKey)
Creates an instance with an old and a new value and sets the instanceType and the messageKey
|
Modifier and Type | Method and Description |
---|---|
AttributeDifference.TYPE |
getInstanceType()
Returns the type of this instance.
|
java.lang.String |
getMessage()
Returns the log message for this difference
|
T |
getNewValue()
Returns the value of the compared property in the second document
|
java.lang.String |
getNewValueDescriptor()
Returns the descriptor for the new value, which is the formatted new value object
|
T |
getOldValue()
Returns the value of the compared property in the first document
|
java.lang.String |
getOldValueDescriptor()
Returns the descriptor for the old value, which is the formatted old value object
|
public AttributeDifference(AttributeDifference.TYPE instanceType, T oldValue, T newValue, java.lang.String messageKey)
instanceType
- the instance typeoldValue
- the old valuenewValue
- the new valuemessageKey
- the message keypublic java.lang.String getMessage()
null
public T getOldValue()
public T getNewValue()
public AttributeDifference.TYPE getInstanceType()
null
public java.lang.String getOldValueDescriptor()
public java.lang.String getNewValueDescriptor()
Copyright © 2010-2022 by i-net software GmbH