All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.javers.core.diff.appenders.PropertyChangeAppender Maven / Gradle / Ivy

There is a newer version: 7.6.2
Show newest version
package org.javers.core.diff.appenders;

import org.javers.core.diff.NodePair;
import org.javers.core.diff.changetype.PropertyChange;
import org.javers.core.metamodel.type.JaversProperty;
import org.javers.core.metamodel.type.JaversType;

/**
 * Property-scope comparator,
 * follows Chain-of-responsibility pattern.
 * 

* * Implementation should calculate diff between two property values * * @author bartosz walacik */ public interface PropertyChangeAppender { int HIGH_PRIORITY = 1; int LOW_PRIORITY = 2; /** * Checks if given property type is supported */ boolean supports(JaversType propertyType); T calculateChanges(NodePair pair, JaversProperty property); default int priority() { return LOW_PRIORITY; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy