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 boolean
equals(java.lang.Object obj)
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 aGlobalId
reference to an added (or removed) item.int
hashCode()
-
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 aGlobalId
reference to an added (or removed) item.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classContainerElementChange
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classContainerElementChange
-
-