Package org.javers.core.diff.appenders
Interface PropertyChangeAppender<T extends PropertyChange>
-
- All Known Implementing Classes:
CorePropertyChangeAppender,CustomToNativeAppenderAdapter,LevenshteinListChangeAppender,ListAsSetChangeAppender,OptionalChangeAppender,SimpleListChangeAppender
public interface PropertyChangeAppender<T extends PropertyChange>Property-scope comparator, follows Chain-of-responsibility pattern.
Implementation should calculate diff between two property values
-
-
Field Summary
Fields Modifier and Type Field Description static intHIGH_PRIORITYstatic intLOW_PRIORITY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TcalculateChanges(NodePair pair, JaversProperty property)default intpriority()booleansupports(JaversType propertyType)Checks if given property type is supported
-
-
-
Field Detail
-
HIGH_PRIORITY
static final int HIGH_PRIORITY
- See Also:
- Constant Field Values
-
LOW_PRIORITY
static final int LOW_PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
supports
boolean supports(JaversType propertyType)
Checks if given property type is supported
-
calculateChanges
T calculateChanges(NodePair pair, JaversProperty property)
-
priority
default int priority()
-
-