Interface UnknownChange
- All Superinterfaces:
Change
Change triggered when the format of changes on an entity is not identified by Audit Log.
Example to create an instance using the builder pattern
UnknownChange unknownChange = UnknownChange.builder()
.change("{change}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UnknownChangeBuilder
builder()
builder factory method for UnknownChangestatic UnknownChangeBuilder
builder
(UnknownChange template) create builder for UnknownChange instancestatic UnknownChange
deepCopy
(UnknownChange template) factory method to create a deep copy of UnknownChange@NotNull String
Identifier for the type of modification.@NotNull Object
Value after the change.@NotNull Object
Value before the change.@NotNull String
getType()
Unique discriminator value to reliably deserialize the data type.static UnknownChange
of()
factory methodstatic UnknownChange
of
(UnknownChange template) factory method to create a shallow copy UnknownChangevoid
Identifier for the type of modification.void
setNextValue
(Object nextValue) Value after the change.void
setPreviousValue
(Object previousValue) Value before the change.static com.fasterxml.jackson.core.type.TypeReference<UnknownChange>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withUnknownChange
(Function<UnknownChange, T> helper) accessor map functionMethods inherited from interface com.commercetools.history.models.change.Change
withChange
-
Field Details
-
UNKNOWN_CHANGE
discriminator value for UnknownChange- See Also:
-
-
Method Details
-
getType
Description copied from interface:Change
Unique discriminator value to reliably deserialize the data type.
-
getChange
Identifier for the type of modification.
-
getPreviousValue
Value before the change.
- Returns:
- previousValue
-
getNextValue
Value after the change.
- Returns:
- nextValue
-
setChange
Identifier for the type of modification.
-
setPreviousValue
Value before the change.
- Parameters:
previousValue
- value to be set
-
setNextValue
Value after the change.
- Parameters:
nextValue
- value to be set
-
of
factory method- Returns:
- instance of UnknownChange
-
of
factory method to create a shallow copy UnknownChange- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of UnknownChange- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for UnknownChange- Returns:
- builder
-
builder
create builder for UnknownChange instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withUnknownChange
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-