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

org.srplib.reflection.deepcompare.DeepComparator Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package org.srplib.reflection.deepcompare;

/**
 * Interface for deep object comparator.
 *
 * 

Used to implements comparison logic for particular class or class hierarchy.

* * @author Anton Pechinsky */ public interface DeepComparator { /** * Compares two objects. * *

* Implementation performs object comparison logic and delegates mismatch registration and nested object comparison to * to {@code context}. *

* * @param object1 first object * @param object2 second object * @param context comparison context . */ void compare(T object1, T object2, DeepComparatorContext context); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy