Package org.javers.core.diff.changetype
Class ValueChange
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InitialValueChange,TerminalValueChange
Change on a Value property, like int or String
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValueChange(PropertyChangeMetadata metadata, Object leftValue, Object rightValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetLeft()Left (or old) value of a changed propertygetRight()Right (or new) value of a changed propertyinthashCode()prettyPrint(PrettyValuePrinter valuePrinter) toString()Pretty print with default dates formattingMethods inherited from class org.javers.core.diff.changetype.PropertyChange
getChangeType, getPropertyName, getPropertyNameWithPath, isPropertyAdded, isPropertyRemoved, isPropertyValueChangedMethods inherited from class org.javers.core.diff.Change
getAffectedGlobalId, getAffectedLocalId, getAffectedObject, getCommitMetadata
-
Constructor Details
-
ValueChange
-
-
Method Details
-
getLeft
Description copied from class:PropertyChangeLeft (or old) value of a changed property- Specified by:
getLeftin classPropertyChange<Object>
-
getRight
Description copied from class:PropertyChangeRight (or new) value of a changed property- Specified by:
getRightin classPropertyChange<Object>
-
prettyPrint
- Specified by:
prettyPrintin classChange
-
equals
- Overrides:
equalsin classPropertyChange<Object>
-
hashCode
public int hashCode()- Overrides:
hashCodein classPropertyChange<Object>
-
toString
Description copied from class:ChangePretty print with default dates formatting- Overrides:
toStringin classPropertyChange<Object>
-