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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic UnknownChangeBuilderbuilder()builder factory method for UnknownChangestatic UnknownChangeBuilderbuilder(UnknownChange template) create builder for UnknownChange instancecopyDeep()static UnknownChangedeepCopy(UnknownChange template) factory method to create a deep copy of UnknownChange@NotNull StringIdentifier for the type of modification.@NotNull ObjectValue after the change.@NotNull ObjectValue before the change.@NotNull StringgetType()Unique discriminator value to reliably deserialize the data type.static UnknownChangeof()factory methodstatic UnknownChangeof(UnknownChange template) factory method to create a shallow copy UnknownChangevoidIdentifier for the type of modification.voidsetNextValue(Object nextValue) Value after the change.voidsetPreviousValue(Object previousValue) Value before the change.static com.fasterxml.jackson.core.type.TypeReference<UnknownChange>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithUnknownChange(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:ChangeUnique 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
-
copyDeep
UnknownChange copyDeep() -
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
-