Package org.javers.core.diff
Class NodePair
- java.lang.Object
-
- org.javers.core.diff.NodePair
-
public class NodePair extends java.lang.Object
holds two versions of the sameObjectNode
-
-
Constructor Summary
Constructors Constructor Description NodePair(ObjectNode left, ObjectNode right, java.util.Optional<CommitMetadata> commitMetadata)
-
Method Summary
-
-
-
Constructor Detail
-
NodePair
public NodePair(ObjectNode left, ObjectNode right, java.util.Optional<CommitMetadata> commitMetadata)
-
-
Method Detail
-
getManagedType
public ManagedType getManagedType()
-
isNullOnBothSides
public boolean isNullOnBothSides(Property property)
-
getLeftPropertyValue
public java.lang.Object getLeftPropertyValue(Property property)
-
getRightPropertyValue
public java.lang.Object getRightPropertyValue(Property property)
-
getRightReferences
public java.util.List<GlobalId> getRightReferences(JaversProperty property)
-
getLeftReferences
public java.util.List<GlobalId> getLeftReferences(JaversProperty property)
-
getRight
public ObjectNode getRight()
-
getLeft
public ObjectNode getLeft()
-
getFirst
public ObjectNode getFirst()
-
getProperties
public java.util.List<JaversProperty> getProperties()
-
getGlobalId
public GlobalId getGlobalId()
-
getCommitMetadata
public java.util.Optional<CommitMetadata> getCommitMetadata()
-
getChangeType
public PropertyChangeType getChangeType(JaversProperty property)
-
getRightDehydratedPropertyValueAndSanitize
public java.lang.Object getRightDehydratedPropertyValueAndSanitize(JaversProperty property)
-
getLeftDehydratedPropertyValueAndSanitize
public java.lang.Object getLeftDehydratedPropertyValueAndSanitize(JaversProperty property)
-
sanitize
public java.lang.Object sanitize(java.lang.Object value, JaversType expectedType)
-
createPropertyChangeMetadata
public PropertyChangeMetadata createPropertyChangeMetadata(JaversProperty property)
-
-