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
Modifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
ConstructorDescriptionChangeRepresentation
(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 boolean
boolean
getType()
int
hashCode()
void
setAttribute
(String attribute) void
setChangeType
(ChangeRepresentation.ChangeType changeType) void
setNewValue
(Object current) void
setPreviousValue
(Object previous) void
toString()
Methods inherited from class com.cumulocity.rest.representation.AbstractExtensibleRepresentation
get, get, getAttrs, getProperty, hasProperty, propertyNames, removeProperty, set, set, set, setAttrs, setProperty
Methods 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:
toString
in classBaseResourceRepresentation
-
builder
-
equals
-
canEqual
-
hashCode
public int hashCode() -
setChangeType
-