Class KeyValueChange<T>
- java.lang.Object
-
- org.javers.core.diff.Change
-
- org.javers.core.diff.changetype.PropertyChange<T>
-
- org.javers.core.diff.changetype.map.KeyValueChange<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
MapChange
public abstract class KeyValueChange<T> extends PropertyChange<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyValueChange(PropertyChangeMetadata metadata, java.util.List<EntryChange> changes, T left, T right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<EntryAdded>
getEntryAddedChanges()
java.util.List<EntryChange>
getEntryChanges()
java.util.List<EntryRemoved>
getEntryRemovedChanges()
java.util.List<EntryValueChange>
getEntryValueChanges()
T
getLeft()
Left (or new) MapT
getRight()
Right (or new) Mapint
hashCode()
java.lang.String
prettyPrint(PrettyValuePrinter valuePrinter)
java.lang.String
toString()
Pretty print with default dates formatting-
Methods inherited from class org.javers.core.diff.changetype.PropertyChange
getChangeType, getPropertyName, getPropertyNameWithPath, isPropertyAdded, isPropertyRemoved, isPropertyValueChanged
-
Methods inherited from class org.javers.core.diff.Change
getAffectedGlobalId, getAffectedLocalId, getAffectedObject, getCommitMetadata
-
-
-
-
Constructor Detail
-
KeyValueChange
public KeyValueChange(PropertyChangeMetadata metadata, java.util.List<EntryChange> changes, T left, T right)
-
-
Method Detail
-
getRight
public T getRight()
Right (or new) Map- Specified by:
getRight
in classPropertyChange<T>
-
getLeft
public T getLeft()
Left (or new) Map- Specified by:
getLeft
in classPropertyChange<T>
-
getEntryChanges
public java.util.List<EntryChange> getEntryChanges()
-
getEntryAddedChanges
public java.util.List<EntryAdded> getEntryAddedChanges()
-
getEntryRemovedChanges
public java.util.List<EntryRemoved> getEntryRemovedChanges()
-
getEntryValueChanges
public java.util.List<EntryValueChange> getEntryValueChanges()
-
prettyPrint
public java.lang.String prettyPrint(PrettyValuePrinter valuePrinter)
- Specified by:
prettyPrint
in classChange
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classPropertyChange<T>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classPropertyChange<T>
-
toString
public java.lang.String toString()
Description copied from class:Change
Pretty print with default dates formatting- Overrides:
toString
in classPropertyChange<T>
-
-