Class CollectionChange<T extends 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:
Serializable
- Direct Known Subclasses:
ListChange,MultisetChange,SetChange
Changes on a Collection property
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionChange(PropertyChangeMetadata metadata, List<ContainerElementChange> changes, Collection left, Collection right) -
Method Summary
Modifier and TypeMethodDescriptionintsize of left (or old) Collection atContainerChange.getLeft()intsize 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, toStringMethods 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
-
CollectionChange
public CollectionChange(PropertyChangeMetadata metadata, List<ContainerElementChange> changes, Collection left, Collection right)
-
-
Method Details
-
getRightSize
public int getRightSize()size of right (or old) Collection atContainerChange.getRight()- Specified by:
getRightSizein classContainerChange<T extends Collection<?>>
-
getLeftSize
public int getLeftSize()size of left (or old) Collection atContainerChange.getLeft()- Specified by:
getLeftSizein classContainerChange<T extends Collection<?>>
-