Class ValueAddOrRemove
- java.lang.Object
-
- org.javers.core.diff.changetype.container.ContainerElementChange
-
- org.javers.core.diff.changetype.container.ValueAddOrRemove
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ValueAdded,ValueRemoved
public abstract class ValueAddOrRemove extends ContainerElementChange
Abstract change in a collection- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.ObjectgetValue()For collections of Primitives or Values it's simply an added (or removed) item.
For collections of Entities or ValueObjects it's aGlobalIdreference to an added (or removed) item.inthashCode()-
Methods inherited from class org.javers.core.diff.changetype.container.ContainerElementChange
getIndex, prettyPrint
-
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
For collections of Primitives or Values it's simply an added (or removed) item.
For collections of Entities or ValueObjects it's aGlobalIdreference to an added (or removed) item.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classContainerElementChange
-
hashCode
public int hashCode()
- Overrides:
hashCodein classContainerElementChange
-
-