Class PropertyChange<T>

java.lang.Object
org.javers.core.diff.Change
org.javers.core.diff.changetype.PropertyChange<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ContainerChange, KeyValueChange, ReferenceChange, ValueChange

public abstract class PropertyChange<T> extends Change
Change on object's property of any type (Value, List, Set, Map, Array or Reference)
See Also:
  • Constructor Details

  • Method Details

    • getLeft

      public abstract T getLeft()
      Left (or old) value of a changed property
    • getRight

      public abstract T getRight()
      Right (or new) value of a changed property
    • getPropertyName

      public String getPropertyName()
    • getPropertyNameWithPath

      public String getPropertyNameWithPath()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Change
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Change
    • getChangeType

      public PropertyChangeType getChangeType()
      Since:
      5.5.0
      See Also:
    • isPropertyAdded

      public boolean isPropertyAdded()
      Returns:
      changeType == PropertyChangeType.PROPERTY_ADDED
      Since:
      5.5.0
      See Also:
    • isPropertyRemoved

      public boolean isPropertyRemoved()
      Returns:
      changeType == PropertyChangeType.PROPERTY_REMOVED
      Since:
      5.5.0
      See Also:
    • isPropertyValueChanged

      public boolean isPropertyValueChanged()
      Returns:
      changeType == PropertyChangeType.PROPERTY_VALUE_CHANGED
      Since:
      5.5.0
      See Also:
    • toString

      public String toString()
      Description copied from class: Change
      Pretty print with default dates formatting
      Overrides:
      toString in class Change