Class ChangeRepresentation
java.lang.Object
com.cumulocity.rest.representation.BaseResourceRepresentation
com.cumulocity.rest.representation.AbstractExtensibleRepresentation
com.cumulocity.rest.representation.audit.ChangeRepresentation
- All Implemented Interfaces:
ResourceRepresentation,org.svenson.DynamicProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionChangeRepresentation(String attribute, String type, Object previousValue, Object newValue) ChangeRepresentation(String attribute, String type, Object previousValue, Object newValue, ChangeRepresentation.ChangeType changeType) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetType()inthashCode()voidsetAttribute(String attribute) voidsetChangeType(ChangeRepresentation.ChangeType changeType) voidsetNewValue(Object current) voidsetPreviousValue(Object previous) voidtoString()Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setPropertyMethods inherited from class com.cumulocity.rest.representation.BaseResourceRepresentation
getSelf, getSelfDecoded, setSelf, toJSON
-
Constructor Details
-
ChangeRepresentation
-
ChangeRepresentation
public ChangeRepresentation() -
ChangeRepresentation
public ChangeRepresentation(String attribute, String type, Object previousValue, Object newValue, ChangeRepresentation.ChangeType changeType)
-
-
Method Details
-
getChangeType
-
getType
-
setType
-
getAttribute
-
setAttribute
-
getPreviousValue
-
setPreviousValue
-
getNewValue
-
setNewValue
-
toString
- Overrides:
toStringin classBaseResourceRepresentation
-
builder
-
equals
-
canEqual
-
hashCode
public int hashCode() -
setChangeType
-