Class CollectionChange<T extends java.util.Collection<?>>
- java.lang.Object
-
- org.javers.core.diff.Change
-
- org.javers.core.diff.changetype.PropertyChange<T>
-
- org.javers.core.diff.changetype.container.ContainerChange<T>
-
- org.javers.core.diff.changetype.container.CollectionChange<T>
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ListChange
,MultisetChange
,SetChange
public abstract class CollectionChange<T extends java.util.Collection<?>> extends ContainerChange<T>
Changes on a Collection property- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CollectionChange(PropertyChangeMetadata metadata, java.util.List<ContainerElementChange> changes, java.util.Collection left, java.util.Collection right)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLeftSize()
size of left (or old) Collection atContainerChange.getLeft()
int
getRightSize()
size of right (or old) Collection atContainerChange.getRight()
-
Methods inherited from class org.javers.core.diff.changetype.container.ContainerChange
equals, getAddedValues, getChanges, getLeft, getRemovedValues, getRight, getValueAddedChanges, getValueRemovedChanges, hashCode, prettyPrint, toString
-
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
-
CollectionChange
public CollectionChange(PropertyChangeMetadata metadata, java.util.List<ContainerElementChange> changes, java.util.Collection left, java.util.Collection right)
-
-
Method Detail
-
getRightSize
public int getRightSize()
size of right (or old) Collection atContainerChange.getRight()
- Specified by:
getRightSize
in classContainerChange<T extends java.util.Collection<?>>
-
getLeftSize
public int getLeftSize()
size of left (or old) Collection atContainerChange.getLeft()
- Specified by:
getLeftSize
in classContainerChange<T extends java.util.Collection<?>>
-
-