Class ContainerChange<T>
- java.lang.Object
-
- org.javers.core.diff.Change
-
- org.javers.core.diff.changetype.PropertyChange<T>
-
- org.javers.core.diff.changetype.container.ContainerChange<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ArrayChange
,CollectionChange
public abstract class ContainerChange<T> extends PropertyChange<T>
Changes on an Array or Collection property- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<?>
getAddedValues()
java.util.List<ContainerElementChange>
getChanges()
T
getLeft()
Left (or old) Collection or arrayabstract int
getLeftSize()
java.util.List<?>
getRemovedValues()
T
getRight()
Right (or new) Collection or arrayabstract int
getRightSize()
java.util.List<ValueAdded>
getValueAddedChanges()
java.util.List<ValueRemoved>
getValueRemovedChanges()
int
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
-
-
-
-
Method Detail
-
getRight
public T getRight()
Right (or new) Collection or array- Specified by:
getRight
in classPropertyChange<T>
-
getLeft
public T getLeft()
Left (or old) Collection or array- Specified by:
getLeft
in classPropertyChange<T>
-
getRightSize
public abstract int getRightSize()
-
getLeftSize
public abstract int getLeftSize()
-
getChanges
public java.util.List<ContainerElementChange> getChanges()
-
getValueAddedChanges
public java.util.List<ValueAdded> getValueAddedChanges()
-
getValueRemovedChanges
public java.util.List<ValueRemoved> getValueRemovedChanges()
-
getAddedValues
public java.util.List<?> getAddedValues()
-
getRemovedValues
public java.util.List<?> getRemovedValues()
-
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>
-
-