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 booleanequals(java.lang.Object obj)java.util.List<?>getAddedValues()java.util.List<ContainerElementChange>getChanges()TgetLeft()Left (or old) Collection or arrayabstract intgetLeftSize()java.util.List<?>getRemovedValues()TgetRight()Right (or new) Collection or arrayabstract intgetRightSize()java.util.List<ValueAdded>getValueAddedChanges()java.util.List<ValueRemoved>getValueRemovedChanges()inthashCode()java.lang.StringprettyPrint(PrettyValuePrinter valuePrinter)java.lang.StringtoString()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:
getRightin classPropertyChange<T>
-
getLeft
public T getLeft()
Left (or old) Collection or array- Specified by:
getLeftin 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:
prettyPrintin classChange
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classPropertyChange<T>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPropertyChange<T>
-
toString
public java.lang.String toString()
Description copied from class:ChangePretty print with default dates formatting- Overrides:
toStringin classPropertyChange<T>
-
-